]> git.saurik.com Git - wxWidgets.git/commitdiff
MinGW warning fix.
authorWłodzimierz Skiba <abx@abx.art.pl>
Tue, 18 Jan 2005 20:13:00 +0000 (20:13 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Tue, 18 Jan 2005 20:13:00 +0000 (20:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/brush.cpp
src/msw/colour.cpp
src/msw/font.cpp
src/msw/pen.cpp
src/msw/region.cpp
src/msw/registry.cpp
src/msw/utils.cpp

index 29161607c3220ee41e9c3234a336dd2ac08a5d9b..07c11e9bdb4ac743f4b6bf2f952ec74685923b84 100644 (file)
@@ -103,7 +103,8 @@ wxBrushRefData::wxBrushRefData(const wxBitmap& stipple)
 }
 
 wxBrushRefData::wxBrushRefData(const wxBrushRefData& data)
-              : m_stipple(data.m_stipple),
+              : wxGDIRefData(),
+                m_stipple(data.m_stipple),
                 m_colour(data.m_colour)
 {
     m_style = data.m_style;
index e16e03408fd1cd96954291d044bd85d8627c7a98..db8be109744cd10f4d3b13b6b67db895d7ff3264 100644 (file)
@@ -84,6 +84,7 @@ void wxColour::Init()
 }
 
 wxColour::wxColour(const wxColour& col)
+         :wxObject()
 {
     *this = col;
 }
index 9b40d9cb927fe601f325e2c5c6a16f1ce9c9e4a3..b18902071fb5c954f1cf150c0bba17583546de66 100644 (file)
@@ -132,7 +132,7 @@ public:
         Init(info, hFont);
     }
 
-    wxFontRefData(const wxFontRefData& data)
+    wxFontRefData(const wxFontRefData& data) : wxGDIRefData()
     {
         if ( data.m_nativeFontInfoOk )
         {
index 93776357d436854b7f915fff0656351728971731..ce9d1dc9e898de6656484b40f2e36a5fd353b60c 100644 (file)
@@ -47,6 +47,7 @@ wxPenRefData::wxPenRefData()
 }
 
 wxPenRefData::wxPenRefData(const wxPenRefData& data)
+             :wxGDIRefData()
 {
     m_style = data.m_style;
     m_width = data.m_width;
index 4b88f32bd16458147a940aabb47cabb8891fe039..828fe82e649e681ba30671b66e3fe4ffdad91c99 100644 (file)
@@ -48,7 +48,7 @@ public:
         m_region = 0;
     }
 
-    wxRegionRefData(const wxRegionRefData& data)
+    wxRegionRefData(const wxRegionRefData& data) : wxGDIRefData()
     {
 #if defined(__WIN32__) && !defined(__WXMICROWIN__) && !defined(__WXWINCE__)
         DWORD noBytes = ::GetRegionData(data.m_region, 0, NULL);
index 0191ef8d8231c36cc822e529492faa60c853c651..70dd768c1248b6bd8605237def0d3163894fbcd7 100644 (file)
@@ -1231,7 +1231,7 @@ wxString wxRegKey::FormatValue(const wxString& name) const
                 if ( !QueryValue(name, &value) )
                     break;
 
-                rhs.Printf(_T("dword:%08x"), value);
+                rhs.Printf(_T("dword:%08x"), (unsigned int)value);
             }
             break;
 
index ad156d3ffea050a98db1c84db7afcf627f05156e..22c24572dc53d5b012ee4b6852c0c5951c708b49 100644 (file)
@@ -895,7 +895,8 @@ int wxKillAllChildren(long pid, wxSignal sig, wxKillError *krc)
     }
 
     //Fill in the size of the structure before using it.
-    PROCESSENTRY32 pe = {0};
+    PROCESSENTRY32 pe;
+    wxZeroMemory(pe);
     pe.dwSize = sizeof(PROCESSENTRY32);
 
     // Walk the snapshot of the processes, and for each process,
@@ -1305,9 +1306,9 @@ extern WXDLLIMPEXP_BASE long wxEncodingToCodepage(wxFontEncoding encoding)
     // There don't seem to be symbolic names for
     // these under Windows so I just copied the
     // values from MSDN.
-    
+
     unsigned int ret;
-    
+
     switch (encoding)
     {
         case wxFONTENCODING_ISO8859_1:      ret = 28591; break;
@@ -1322,7 +1323,7 @@ extern WXDLLIMPEXP_BASE long wxEncodingToCodepage(wxFontEncoding encoding)
         case wxFONTENCODING_ISO8859_10:     ret = 28600; break;
         case wxFONTENCODING_ISO8859_11:     ret = 28601; break;
         // case wxFONTENCODING_ISO8859_12,      // doesn't exist currently, but put it
-        case wxFONTENCODING_ISO8859_13:     ret = 28603; break;      
+        case wxFONTENCODING_ISO8859_13:     ret = 28603; break;
         case wxFONTENCODING_ISO8859_14:     ret = 28604; break;
         case wxFONTENCODING_ISO8859_15:     ret = 28605; break;
         case wxFONTENCODING_KOI8:           ret = 20866; break;
@@ -1364,10 +1365,10 @@ extern WXDLLIMPEXP_BASE long wxEncodingToCodepage(wxFontEncoding encoding)
         case wxFONTENCODING_UTF8:           ret = 65001; break;
         default:                            return -1;
     }
-    
+
     if (::IsValidCodePage(ret) == 0)
         return -1;
-    
+
     CPINFO info;
     if (::GetCPInfo(ret, &info) == 0)
         return -1;