diff --git a/lib/base/object-packer.cpp b/lib/base/object-packer.cpp index 988504fe7..3f0a571d8 100644 --- a/lib/base/object-packer.cpp +++ b/lib/base/object-packer.cpp @@ -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()); }