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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user