Refactor property attribute names in wxPGProperty::GetAttribute calls.

Use attribute constants instead of strings in wxPGProperty and wxPGDefaultRenderer classes and in NumericValidation() function.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Artur Wieczorek
2015-01-21 17:06:16 +00:00
parent 3100258aa1
commit 1bac5cfbe0
3 changed files with 9 additions and 9 deletions

View File

@@ -357,14 +357,14 @@ bool NumericValidation( const wxPGProperty* property,
bool minOk = false;
bool maxOk = false;
variant = property->GetAttribute(wxPGGlobalVars->m_strMin);
variant = property->GetAttribute(wxPG_ATTR_MIN);
if ( !variant.IsNull() )
{
variant.Convert(&min);
minOk = true;
}
variant = property->GetAttribute(wxPGGlobalVars->m_strMax);
variant = property->GetAttribute(wxPG_ATTR_MAX);
if ( !variant.IsNull() )
{
variant.Convert(&max);
@@ -443,14 +443,14 @@ bool NumericValidation( const wxPGProperty* property,
bool minOk = false;
bool maxOk = false;
variant = property->GetAttribute(wxPGGlobalVars->m_strMin);
variant = property->GetAttribute(wxPG_ATTR_MIN);
if ( !variant.IsNull() )
{
variant.Convert(&min);
minOk = true;
}
variant = property->GetAttribute(wxPGGlobalVars->m_strMax);
variant = property->GetAttribute(wxPG_ATTR_MAX);
if ( !variant.IsNull() )
{
variant.Convert(&max);