tweak StringOutputStream use

auto str = StringOutputStream()(bla) use form was not doing copy elision or move, but copy
This commit is contained in:
Garux
2024-01-29 16:54:08 +06:00
parent b4e44bc8ed
commit df02774ff5
122 changed files with 984 additions and 1204 deletions

View File

@@ -24,10 +24,10 @@ inline void StringPool_analyse( StringPool& pool ){
pooled += size + 20;
ordered.insert( Ordered::value_type( ( *i ).value, ( *i ).key ) );
}
globalOutputStream() << "total: " << total << " pooled:" << pooled << "\n";
globalOutputStream() << "total: " << total << " pooled:" << pooled << '\n';
for ( Ordered::iterator i = ordered.begin(); i != ordered.end(); ++i )
{
globalOutputStream() << ( *i ).second << " " << ( *i ).first << "\n";
globalOutputStream() << ( *i ).second << ' ' << ( *i ).first << '\n';
}
}