Skip to content
Snippets Groups Projects
Verified Commit 8c1e48a0 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Add a few more calls to std::move()

parent c4f331c7
Branches
No related tags found
No related merge requests found
...@@ -108,11 +108,11 @@ namespace macro ...@@ -108,11 +108,11 @@ namespace macro
inline void pushContext() { directive_stack.emplace(vector<DirectivePtr>()); } inline void pushContext() { directive_stack.emplace(vector<DirectivePtr>()); }
inline void pushContextTop(DirectivePtr statement) { directive_stack.top().emplace_back(statement); } inline void pushContextTop(DirectivePtr statement) { directive_stack.top().emplace_back(move(statement)); }
inline void pushStatements(DirectivePtr statement) { statements.emplace_back(statement); } inline void pushStatements(DirectivePtr statement) { statements.emplace_back(move(statement)); }
inline vector<DirectivePtr> popContext() { auto top = directive_stack.top(); directive_stack.pop(); return top; } inline vector<DirectivePtr> popContext() { auto top = move(directive_stack.top()); directive_stack.pop(); return top; }
}; };
} }
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment