mirror of https://github.com/Icinga/icinga2.git
Merge pull request #6526 from Icinga/bugfix/wpessimizing-move-6524
icinga::PackObject(): shorten conversion to string
This commit is contained in:
commit
24de1963b1
|
@ -262,7 +262,5 @@ String icinga::PackObject(const Value& value)
|
||||||
StringBuilder builder;
|
StringBuilder builder;
|
||||||
PackAny(value, builder);
|
PackAny(value, builder);
|
||||||
|
|
||||||
String result;
|
return String(builder.begin(), builder.end());
|
||||||
result.insert(result.End(), builder.begin(), builder.end());
|
|
||||||
return std::move(result);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue