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:
Campbell Barton
2012-09-20 00:55:32 +00:00
parent 5205927892
commit 5d56a901a8
6 changed files with 14 additions and 14 deletions

View File

@@ -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();