Commit f88ae0c3 authored by Alex Birch's avatar Alex Birch

we were moving as far as constructor arg, but afterwards we were copying to...

we were moving as far as constructor arg, but afterwards we were copying to member. this fixes that. https://stackoverflow.com/a/16725030/5257399
parent 7525949a
......@@ -21,7 +21,7 @@ public:
class PrintableString : public virtual IPrintable
{
public:
PrintableString(std::string value) : value_(value) { }
PrintableString(std::string value) : value_(std::move(value)) { }
uint64_t value();
private:
std::string value_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment