c++11 tidying.
[dcpomatic.git] / src / wx / wx_util.cc
index 2bd64cc304f6b7ec5cb7ae8bcf496c68579e6b12..192724b13328ba496a87ab38198b14da71efe16e 100644 (file)
@@ -66,16 +66,19 @@ create_label (wxWindow* p, wxString t, bool)
 }
 
 
+#ifdef __WXOSX__
 static
+void
 setup_osx_flags (wxSizer* s, bool left, int& flags)
 {
        if (left) {
-               auto box = dynamic_cast<wxBoxSizer>(s);
+               auto box = dynamic_cast<wxBoxSizer*>(s);
                if (!box || box->GetOrientation() != wxHORIZONTAL) {
                        flags |= wxALIGN_RIGHT;
                }
        }
 }
+#endif
 
 
 /** Add a wxStaticText to a wxSizer, aligning it at vertical centre.