icinga::PackObject(): shorten conversion to string

refs #6524
This commit is contained in:
Alexander A. Klimov 2018-08-07 09:57:08 +02:00
parent 2e3a1ff0c6
commit 137f5363c4
1 changed files with 1 additions and 3 deletions

View File

@ -262,7 +262,5 @@ String icinga::PackObject(const Value& value)
StringBuilder builder;
PackAny(value, builder);
String result;
result.insert(result.End(), builder.begin(), builder.end());
return std::move(result);
return String(builder.begin(), builder.end());
}