]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/object.cpp
Next try at removing the dancing sliders
[wxWidgets.git] / src / common / object.cpp
index 6d293b0569bbd1e9f1e350bffbab9905c3c877c5..9bfb34ca1dc94944cee8756794cb91dbeea03abc 100644 (file)
@@ -74,7 +74,7 @@ wxObject::~wxObject(void)
  * two possible base classes.
  */
  
-bool wxObject::IsKindOf(wxClassInfo *info)
+bool wxObject::IsKindOf(wxClassInfo *info) const
 {
   wxClassInfo *thisInfo = GetClassInfo();
   if (thisInfo)
@@ -166,7 +166,7 @@ wxClassInfo *wxClassInfo::FindClass(char *c)
 
 // Climb upwards through inheritance hierarchy.
 // Dual inheritance is catered for.
-bool wxClassInfo::IsKindOf(wxClassInfo *info)
+bool wxClassInfo::IsKindOf(wxClassInfo *info) const
 {
   if (info == NULL)
     return FALSE;
@@ -220,7 +220,6 @@ void wxClassInfo::InitializeClasses(void)
   }
 }
 
-// Clean up hash table
 void wxClassInfo::CleanUpClasses(void)
 {
     delete wxClassInfo::sm_classTable;
@@ -353,3 +352,7 @@ wxObjectRefData::~wxObjectRefData(void)
 {
 }
 
+// These are here so we can avoid 'always true/false' warnings
+// by referring to these instead of TRUE/FALSE
+const bool wxTrue = TRUE;
+const bool wxFalse = FALSE;