Simplify code by using wxCHECK instead of a test and wxFAIL

Make the code shorter and arguably more clear.
This commit is contained in:
Vadim Zeitlin
2015-11-25 19:59:05 +01:00
parent 56ebe6dfac
commit 3195ba7fb4

View File

@@ -114,15 +114,9 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index)
}
}
if ( sysColor )
{
return wxColour(sysColor);
}
else
{
wxFAIL_MSG(wxT("Unimplemented system colour index"));
return wxColour();
}
wxCHECK_MSG( sysColor, wxColour(), wxS("Unimplemented system colour") );
return wxColour(sysColor);
}
// ----------------------------------------------------------------------------