Use empty() member function to determine if string is empty

Use this dedicated function instead of checking if length() function returns zero/non-zero value.
This commit is contained in:
Artur Wieczorek 2019-11-08 18:53:02 +01:00
parent 652e6fbadb
commit 6eccec3ae7

View File

@ -482,8 +482,8 @@ protected:
{
return ( !m_text &&
!(flags & wxCONTROL_ISSUBMENU) &&
!m_valueString.length() &&
m_hintText.length() &&
m_valueString.empty() &&
!m_hintText.empty() &&
!ShouldDrawFocus() );
}