]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/toolbkg.cpp
make sure we don't use uninitalized output stream in OnSysWrite() (coverity checked...
[wxWidgets.git] / src / generic / toolbkg.cpp
index 4c25444a00de6c0aa064ee8191e4506d36ea6802..f5720f5ab870acc6ed9534704c77ecdd78e1c425 100644 (file)
 
 #if wxUSE_TOOLBOOK
 
+#ifndef WX_PRECOMP
+    #include "wx/icon.h"
+    #include "wx/settings.h"
+    #include "wx/toolbar.h"
+#endif
+
 #include "wx/imaglist.h"
-#include "wx/icon.h"
-#include "wx/toolbar.h"
-#include "wx/toolbook.h"
-#include "wx/settings.h"
 #include "wx/sysopt.h"
+#include "wx/toolbook.h"
 
 // ----------------------------------------------------------------------------
 // various wxWidgets macros
@@ -395,7 +398,9 @@ void wxToolbook::OnToolSelected(wxCommandEvent& event)
 
     // change wasn't allowed, return to previous state
     if (m_selection != selNew)
+    {
         GetToolBar()->ToggleTool(m_selection, false);
+    }
 }
 
 #endif // wxUSE_TOOLBOOK