Use empty() member function to determine if arrays are empty in wxPG.
Use this dedicated function instead of checking if size() function returns zero/non-zero value.
This commit is contained in:
@@ -526,9 +526,7 @@ public:
|
||||
*/
|
||||
wxPGProperty* GetSelection() const
|
||||
{
|
||||
if ( m_selection.size() == 0 )
|
||||
return NULL;
|
||||
return m_selection[0];
|
||||
return m_selection.empty()? NULL: m_selection[0];
|
||||
}
|
||||
|
||||
void DoSetSelection( wxPGProperty* prop )
|
||||
|
Reference in New Issue
Block a user