X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fctsim.cpp;h=2d094d383e52e6e1198f82d9e204648f0e67a1bb;hb=7a50ad8860d015c3e06038475929bc62011b561c;hp=cdb4cafb6e945a419749ddcf97a52e7876bb38a6;hpb=98f894fe74f1a532f5e6d69cca0404d9a58893e7;p=ctsim.git diff --git a/src/ctsim.cpp b/src/ctsim.cpp index cdb4caf..2d094d3 100644 --- a/src/ctsim.cpp +++ b/src/ctsim.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: ctsim.cpp,v 1.12 2000/09/07 01:28:33 kevin Exp $ +** $Id: ctsim.cpp,v 1.13 2000/09/07 14:29:05 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -53,7 +53,7 @@ #include #endif -static const char* rcsindent = "$Id: ctsim.cpp,v 1.12 2000/09/07 01:28:33 kevin Exp $"; +static const char* rcsindent = "$Id: ctsim.cpp,v 1.13 2000/09/07 14:29:05 kevin Exp $"; class CTSimApp* theApp = NULL; @@ -281,7 +281,7 @@ MainFrame::OnUpdateUI (wxUpdateUIEvent& rEvent) while (iPos < MAX_WINDOW_MENUITEMS && pNode != NULL) { wxDocument* pDoc = static_cast(pNode->GetData()); wxString strFilename = pDoc->GetFilename(); - m_apWindowMenuItems[iPos]->SetName (strFilename); + static_cast(m_apWindowMenuItems[iPos])->SetName (strFilename); m_apWindowMenuData[iPos] = pDoc; m_pWindowMenu->Enable (MAINMENU_WINDOW_BASE+iPos, true); iPos++; @@ -289,7 +289,7 @@ MainFrame::OnUpdateUI (wxUpdateUIEvent& rEvent) } for (int i = iPos; i < MAX_WINDOW_MENUITEMS; i++) { m_pWindowMenu->Enable (MAINMENU_WINDOW_BASE+i, false); - m_apWindowMenuItems[i]->SetName (wxString("")); + static_cast(m_apWindowMenuItems[i])->SetName (wxString("")); m_apWindowMenuData[i] = NULL; }