Don't allocate a new string just for output.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
This commit is contained in:
Roman Zulak 2016-10-07 21:24:18 -04:00 committed by sftnight
parent a0fa470342
commit 87415d29a9

View File

@ -249,7 +249,7 @@ namespace cling {
std::string valueStr = cling::valuePrinterInternal::printValueInternal(*this);
// Print the type and the value:
Out << typeStr + " " + valueStr << "\n";
Out << typeStr << " " << valueStr << '\n';
}
void Value::dump() const {