Commit e66a7d6a authored by Martin Heistermann's avatar Martin Heistermann

ResourceManager assignment operator: notice self-assignment

parent 6401bee8
......@@ -59,6 +59,8 @@ ResourceManager::ResourceManager(ResourceManager &&other)
ResourceManager &ResourceManager::operator=(const ResourceManager &other)
{
if (this == &other) return *this;
auto cloneProps = [this](const Properties &src, Properties &dest) {
dest.reserve(src.size());
for (BaseProperty *bp: src) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment