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:
@@ -95,7 +95,7 @@ wxString wxStringProperty::ValueToString( wxVariant& value,
|
||||
// Value stored in m_value is non-editable, non-full value
|
||||
if ( (argFlags & wxPG_FULL_VALUE) ||
|
||||
(argFlags & wxPG_EDITABLE_VALUE) ||
|
||||
!s.length() )
|
||||
s.empty() )
|
||||
{
|
||||
// Calling this under incorrect conditions will fail
|
||||
wxASSERT_MSG( argFlags & wxPG_VALUE_IS_CURRENT,
|
||||
|
Reference in New Issue
Block a user