From 4ec4dcd3f5fe21b94f37330d4940baa2fcb3bf50 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 22 Feb 2014 14:54:49 +0000 Subject: [PATCH] Use symbolic attributes names in wxPropertyGrid code. No real changes, just use constants instead of hardcoding their values. See #15625. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/propgrid/advprops.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/propgrid/advprops.cpp b/src/propgrid/advprops.cpp index 7adc3127c7..df7c0f25ec 100644 --- a/src/propgrid/advprops.cpp +++ b/src/propgrid/advprops.cpp @@ -340,13 +340,13 @@ bool wxPGSpinCtrlEditor::OnEvent( wxPropertyGrid* propgrid, wxPGProperty* proper int mode = wxPG_PROPERTY_VALIDATION_SATURATE; - if ( property->GetAttributeAsLong(wxT("Wrap"), 0) ) + if ( property->GetAttributeAsLong(wxPG_ATTR_SPINCTRL_WRAP, 0) ) mode = wxPG_PROPERTY_VALIDATION_WRAP; if ( property->GetValueType() == wxT("double") ) { double v_d; - double step = property->GetAttributeAsDouble(wxT("Step"), 1.0); + double step = property->GetAttributeAsDouble(wxPG_ATTR_SPINCTRL_STEP, 1.0); // Try double if ( s.ToDouble(&v_d) ) @@ -372,7 +372,7 @@ bool wxPGSpinCtrlEditor::OnEvent( wxPropertyGrid* propgrid, wxPGProperty* proper else { wxLongLong_t v_ll; - wxLongLong_t step = property->GetAttributeAsLong(wxT("Step"), 1); + wxLongLong_t step = property->GetAttributeAsLong(wxPG_ATTR_SPINCTRL_STEP, 1); // Try (long) long if ( s.ToLongLong(&v_ll, 10) )