]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/toolbar.cpp
Replace remaining references to 2.9.0 with 2.9.1.
[wxWidgets.git] / src / os2 / toolbar.cpp
index ebceb00abba3f819b8f9391dade7dd5b22c5a94b..4bfe61fc7e9522e5b323ddfeb800d1956d5463ac 100644 (file)
@@ -423,11 +423,7 @@ bool wxToolBar::Create( wxWindow* pParent,
 
 wxToolBar::~wxToolBar()
 {
-    if (m_pToolTip)
-    {
-        delete m_pToolTip;
-        m_pToolTip = NULL;
-    }
+    wxDELETE(m_pToolTip);
 } // end of wxToolBar::~wxToolBar
 
 bool wxToolBar::Realize()
@@ -935,7 +931,7 @@ void wxToolBar::SetRows(
   int                               nRows
 )
 {
-    wxCHECK_RET( nRows != 0, _T("max number of rows must be > 0") );
+    wxCHECK_RET( nRows != 0, wxT("max number of rows must be > 0") );
 
     m_maxCols = (GetToolsCount() + nRows - 1) / nRows;
     Refresh();