clang-tidy: Run modernize-use-emplace everywhere (#6451)
... to avoid constructing and copying temp objects
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user