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:
Jan van Dijk
2015-06-03 17:08:30 +02:00
committed by Vadim Zeitlin
parent 09e1223d2e
commit 72a4c3a4d0
4 changed files with 5 additions and 16 deletions

View File

@@ -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);