apparently I shouldn't std::move on return, let's pray to the compiler
authorJohn Tsiombikas <nuclear@member.fsf.org>
Sun, 18 Mar 2018 08:44:52 +0000 (10:44 +0200)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Sun, 18 Mar 2018 08:44:52 +0000 (10:44 +0200)
it'll not copy the whole fucking list...

src/metascene.cc

index 6805fae..a85b65e 100644 (file)
@@ -180,7 +180,7 @@ std::list<SceneNode*> MetaScene::match_nodes(const char *qstr) const
                        res.splice(res.end(), tmp);
                }
        }
                        res.splice(res.end(), tmp);
                }
        }
-       return std::move(res);
+       return res;     // hopefully it'll be moved
 }
 
 Scene *MetaScene::extract_nodes(const char *qstr)
 }
 
 Scene *MetaScene::extract_nodes(const char *qstr)