X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a6b27b78d3bde840b1ad0e7037f04117bc51a31c..cfa822b8f1736a137a4189470ec90f4b95095381:/src/generic/tbarsmpl.cpp?ds=sidebyside

diff --git a/src/generic/tbarsmpl.cpp b/src/generic/tbarsmpl.cpp
index 10f4cf1103..dd79b926b4 100644
--- a/src/generic/tbarsmpl.cpp
+++ b/src/generic/tbarsmpl.cpp
@@ -234,8 +234,7 @@ bool wxToolBarSimple::Create(wxWindow *parent,
         return FALSE;
 
     // Set it to grey (or other 3D face colour)
-    wxSystemSettings settings;
-    SetBackgroundColour(settings.GetSystemColour(wxSYS_COLOUR_3DFACE));
+    SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));
 
     if ( GetWindowStyleFlag() & wxTB_VERTICAL )
     {