X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/93cf77c076b699e8e0b3b0049bd4f80de15997dd..2a29700ecf3d6862db16c5f5c9086a698a7ff247:/src/stubs/toolbar.cpp diff --git a/src/stubs/toolbar.cpp b/src/stubs/toolbar.cpp index 61f34c8283..3cb859e366 100644 --- a/src/stubs/toolbar.cpp +++ b/src/stubs/toolbar.cpp @@ -13,17 +13,7 @@ #pragma implementation "toolbar.h" #endif -// For compilers that support precompilation, includes "wx.h". -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ -#pragma hdrstop -#endif - -#ifndef WX_PRECOMP -#include "wx.h" -#endif - +#include "wx/wx.h" #include "wx/toolbar.h" #if !USE_SHARED_LIBRARY @@ -105,7 +95,6 @@ void wxToolBar::EnableTool(int toolIndex, bool enable) tool->m_enabled = enable; // TODO enable button } - } } void wxToolBar::ToggleTool(int toolIndex, bool toggle) @@ -135,7 +124,7 @@ void wxToolBar::ClearTools() wxToolBarTool *wxToolBar::AddTool(int index, const wxBitmap& bitmap, const wxBitmap& pushedBitmap, bool toggle, long xPos, long yPos, wxObject *clientData, const wxString& helpString1, const wxString& helpString2) { - wxToolBarTool *tool = new wxToolBarTool(index, bitmap, (wxBitmap *)NULL, toggle, xPos, yPos, helpString1, helpString2); + wxToolBarTool *tool = new wxToolBarTool(index, bitmap, wxNullBitmap, toggle, xPos, yPos, helpString1, helpString2); tool->m_clientData = clientData; if (xPos > -1)