X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1ab440bc203fc700744039abdcff12bdd6ac6f0a..e47c778924ef4f0456edd5912cf7a2131ecb634f:/src/os2/slider.cpp

diff --git a/src/os2/slider.cpp b/src/os2/slider.cpp
index ae0c5c1520..eec25e5f92 100644
--- a/src/os2/slider.cpp
+++ b/src/os2/slider.cpp
@@ -406,11 +406,9 @@ bool wxSlider::Create(
                                               )
                                  ) + 4; // for bordersizes
 
-    wxColour                        vColour;
+    wxColour vColour(*wxBLACK);
 
-    vColour.Set(wxString(wxT("BLACK")));
-
-    LONG                            lColor = (LONG)vColour.GetPixel();
+    LONG lColor = (LONG)vColour.GetPixel();
 
     ::WinSetPresParam( m_hStaticMin
                       ,PP_FOREGROUNDCOLOR