projects
/
laserbrain_demo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
844f36f
)
apparently I shouldn't std::move on return, let's pray to the compiler
author
John Tsiombikas
<nuclear@member.fsf.org>
Sun, 18 Mar 2018 08:44:52 +0000
(10:44 +0200)
committer
John 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
patch
|
blob
|
history
diff --git
a/src/metascene.cc
b/src/metascene.cc
index
6805fae
..
a85b65e
100644
(file)
--- a/
src/metascene.cc
+++ b/
src/metascene.cc
@@
-180,7
+180,7
@@
std::list<SceneNode*> 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)