Use wxString::empty() function calls to determine if string is empty in wxPG.
Use this dedicated function instead of explicitly check if wxString::length() returns non-zero value.
This commit is contained in:
@@ -982,7 +982,7 @@ wxPropertyGridPage* wxPropertyGridManager::InsertPage( int index,
|
||||
|
||||
if ( !label.empty() )
|
||||
{
|
||||
wxASSERT_MSG( !pageObj->m_label.length(),
|
||||
wxASSERT_MSG( pageObj->m_label.empty(),
|
||||
wxT("If page label is given in constructor, empty label must be given in AddPage"));
|
||||
pageObj->m_label = label;
|
||||
}
|
||||
|
Reference in New Issue
Block a user