From 82367657a8ac442b29c1dad51c91e64a48e0671d Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Sun, 18 Mar 2018 10:44:52 +0200 Subject: [PATCH 1/1] apparently I shouldn't std::move on return, let's pray to the compiler it'll not copy the whole fucking list... --- src/metascene.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/metascene.cc b/src/metascene.cc index 6805fae..a85b65e 100644 --- a/src/metascene.cc +++ b/src/metascene.cc @@ -180,7 +180,7 @@ std::list MetaScene::match_nodes(const char *qstr) const res.splice(res.end(), tmp); } } - return std::move(res); + return res; // hopefully it'll be moved } Scene *MetaScene::extract_nodes(const char *qstr) -- 1.7.10.4