clang-tidy: Run modernize-use-emplace everywhere (#6451)

... to avoid constructing and copying temp objects
This commit is contained in:
Levin Oehlmann
2022-06-26 08:54:59 +02:00
committed by GitHub
parent 28ec71f91a
commit c075ba93fb
4 changed files with 7 additions and 7 deletions

View File

@@ -408,7 +408,7 @@ public:
{
char buf[32];
sprintf( buf, "%d", _i );
data.push_back( std::string( buf ) );
data.emplace_back( buf );
return *this;
}
@@ -416,7 +416,7 @@ public:
{
char buf[32];
sprintf( buf, "%f", _f );
data.push_back( std::string( buf ) );
data.emplace_back( buf );
return *this;
}