Merge pull request #6526 from Icinga/bugfix/wpessimizing-move-6524

icinga::PackObject(): shorten conversion to string
This commit is contained in:
Gunnar Beutner 2018-08-07 10:05:18 +02:00 committed by GitHub
commit 24de1963b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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());
}