Don't test if a reference is null, this cannot happen.
Testing for null references is unnecessary and just results in clang warnings. Closes #17016.
This commit is contained in:
committed by
Vadim Zeitlin
parent
09e1223d2e
commit
72a4c3a4d0
@@ -1201,7 +1201,7 @@ wxEnumProperty::wxEnumProperty( const wxString& label, const wxString& name,
|
||||
{
|
||||
SetIndex(0);
|
||||
|
||||
if ( &labels && !labels.empty() )
|
||||
if ( !labels.empty() )
|
||||
{
|
||||
m_choices.Set(labels, values);
|
||||
|
||||
@@ -1590,7 +1590,7 @@ wxFlagsProperty::wxFlagsProperty( const wxString& label, const wxString& name,
|
||||
{
|
||||
m_oldChoicesData = NULL;
|
||||
|
||||
if ( &labels && !labels.empty() )
|
||||
if ( !labels.empty() )
|
||||
{
|
||||
m_choices.Set(labels,values);
|
||||
|
||||
|
Reference in New Issue
Block a user