use emplace_back instead of push_back where justified
This commit is contained in:
@@ -334,8 +334,8 @@ ColorLegend::ColorLegend (void)
|
||||
: _bOutsideGrayed(false)
|
||||
{
|
||||
// default green, red
|
||||
_aclColorFields.push_back(Color(0, 1, 0));
|
||||
_aclColorFields.push_back(Color(1, 0, 0));
|
||||
_aclColorFields.emplace_back(0, 1, 0);
|
||||
_aclColorFields.emplace_back(1, 0, 0);
|
||||
|
||||
_aclNames.push_back("Min");
|
||||
_aclNames.push_back("Max");
|
||||
|
||||
Reference in New Issue
Block a user