Skip to content

Commit

Permalink
Max66s first suggestion.
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloWood committed Aug 14, 2018
1 parent 577136a commit b847f97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tracked_string.cxx
Expand Up @@ -24,12 +24,12 @@ class string : public tracked::Tracked<&name_string>
struct Foo
{
string s;
Foo(string s_) : s(s_) { }
Foo(string s_) : s(std::move(s_)) { }
};

Foo* f(string s)
{
return new Foo(s);
return new Foo(std::move(s));
}

int main()
Expand Down

0 comments on commit b847f97

Please sign in to comment.