code cleanup: c++ - use empty() rather than size(), use prefix operators for non-primitive types - recommended for non primitive types.
This commit is contained in:
@@ -236,7 +236,7 @@ void SG_TreeFactory::Add(SG_Tree* tree)
|
||||
|
||||
SG_Tree* SG_TreeFactory::MakeTreeDown(SG_BBox &bbox)
|
||||
{
|
||||
if (m_objects.size() == 0)
|
||||
if (m_objects.empty())
|
||||
return NULL;
|
||||
if (m_objects.size() == 1)
|
||||
return *m_objects.begin();
|
||||
|
Reference in New Issue
Block a user