// 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
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)
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)
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;
node = next;
}
}
-#endif
\ No newline at end of file
+#endif