X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8552e6f031ded8ae61b4a5b489fbf06962365da7..c0b0635cf69537ca32377bad5650b39402cb21b6:/contrib/samples/ogl/studio/symbols.cpp?ds=sidebyside diff --git a/contrib/samples/ogl/studio/symbols.cpp b/contrib/samples/ogl/studio/symbols.cpp index 362b0799ea..204604e046 100644 --- a/contrib/samples/ogl/studio/symbols.cpp +++ b/contrib/samples/ogl/studio/symbols.cpp @@ -74,7 +74,7 @@ void csSymbolDatabase::AddSymbol(csSymbol* symbol) void csSymbolDatabase::ClearSymbols() { - wxNode* node = m_symbols.GetFirst(); + wxObjectList::compatibility_iterator node = m_symbols.GetFirst(); while (node) { csSymbol* symbol = (csSymbol*) node->GetData(); @@ -87,7 +87,7 @@ void csSymbolDatabase::ClearSymbols() csSymbol* csSymbolDatabase::FindSymbol(const wxString& name) const { - wxNode* node = m_symbols.GetFirst(); + wxObjectList::compatibility_iterator node = m_symbols.GetFirst(); while (node) { csSymbol* symbol = (csSymbol*) node->GetData(); @@ -101,7 +101,7 @@ csSymbol* csSymbolDatabase::FindSymbol(const wxString& name) const csSymbol* csSymbolDatabase::FindSymbol(int toolId) const { - wxNode* node = m_symbols.GetFirst(); + wxObjectList::compatibility_iterator node = m_symbols.GetFirst(); while (node) { csSymbol* symbol = (csSymbol*) node->GetData(); @@ -212,7 +212,7 @@ wxBitmap* csSymbolDatabase::CreateToolBitmap(csSymbol* symbol, const wxSize& too memDC.SetBackground(wxBrush(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE), wxSOLID)); memDC.Clear(); - symbol->GetShape()->Show(TRUE); + symbol->GetShape()->Show(true); symbol->GetShape()->Move(memDC, centreX, centreY); memDC.SelectObject(wxNullBitmap);