]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/configtool/src/property.cpp
moved wxFontMapper tests to its own file and testcase
[wxWidgets.git] / utils / configtool / src / property.cpp
index edaf2e31ecddcf68357aedb1fc94fa02d7d8c7b2..5682362b4f1b1c1a8b33e6e1e5bd2aa21d6f1e10 100644 (file)
@@ -7,10 +7,10 @@
 // Created:     2003-06-03
 // RCS-ID:      $Id$
 // Copyright:   (c) Julian Smart
-// Licence:    
+// Licence:
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "property.h"
 #endif
 
@@ -111,9 +111,9 @@ ctProperty* ctProperties::FindOrCreateProperty(const wxString& name)
 
 void ctProperties::Clear()
 {
-    m_list.DeleteContents(TRUE);
+    m_list.DeleteContents(true);
     m_list.Clear();
-    m_list.DeleteContents(FALSE);
+    m_list.DeleteContents(false);
 }
 
 void ctProperties::Copy(const ctProperties& properties)
@@ -144,7 +144,7 @@ void ctProperties::SetProperty(const wxString& name, long value)
 void ctProperties::SetProperty(const wxString& name, bool value)
 {
     ctProperty* prop = FindOrCreateProperty(name);
-    prop->GetVariant() = (bool) value;
+    prop->GetVariant() = value;
 }
 
 void ctProperties::SetProperty(const wxString& name, const wxVariant& value)
@@ -158,7 +158,7 @@ ctProperty* ctProperties::GetNth(int i) const
     wxASSERT( i < (int) GetCount() );
     if (i < (int) GetCount())
     {
-        wxNode* node = m_list.Nth(i);
+        wxNode* node = m_list.Item(i);
         return (ctProperty*) node->GetData();
     }
     return NULL;
@@ -229,4 +229,4 @@ void ctProperties::RemoveHiddenProperties()
         node = next;
     }
 }
-#endif
\ No newline at end of file
+#endif