-bool wxPropertyValue::BoolValue(void) {
- if (type == wxPropertyValueReal)
- return (value.real != 0.0);
- if (type == wxPropertyValueRealPtr)
- return (*(value.realPtr) != 0.0);
- else if (type == wxPropertyValueInteger)
- return (value.integer != 0);
- else if (type == wxPropertyValueIntegerPtr)
- return (*(value.integerPtr) != 0);
- else if (type == wxPropertyValuebool)
- return (value.integer != 0);
- else if (type == wxPropertyValueboolPtr)
- return (*(value.boolPtr) != 0);
+bool wxPropertyValue::BoolValue(void) const {
+ if (m_type == wxPropertyValueReal)
+ return (m_value.real != 0.0);
+ if (m_type == wxPropertyValueRealPtr)
+ return (*(m_value.realPtr) != 0.0);
+ else if (m_type == wxPropertyValueInteger)
+ return (m_value.integer != 0);
+ else if (m_type == wxPropertyValueIntegerPtr)
+ return (*(m_value.integerPtr) != 0);
+ else if (m_type == wxPropertyValuebool)
+ return (m_value.integer != 0);
+ else if (m_type == wxPropertyValueboolPtr)
+ return (*(m_value.boolPtr) != 0);