]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed gcc warnings about not initializing the base class in copy ctor
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 6 Apr 2006 17:11:25 +0000 (17:11 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 6 Apr 2006 17:11:25 +0000 (17:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/convauto.h
include/wx/strconv.h

index 1e32c72c070a0d7d0317757cd2370172ebe91c67..89682525ef4bb61dac3207cde4fa72537f5896a5 100644 (file)
@@ -27,7 +27,7 @@ public:
 
     // copy ctor doesn't initialize anything neither as conversion can only be
     // deduced on first use
-    wxConvAuto(const wxConvAuto& WXUNUSED(other)) { m_conv = NULL; }
+    wxConvAuto(const wxConvAuto& WXUNUSED(other)) : wxMBConv() { m_conv = NULL; }
 
     virtual ~wxConvAuto() { if ( m_conv && m_ownsConv ) delete m_conv; }
 
index 134434405a3a8664b389e10b00f2916ac886381c..e2ef14a6bade094c3da3e12088365acc1c59f069 100644 (file)
@@ -191,7 +191,8 @@ class WXDLLIMPEXP_BASE wxConvBrokenFileNames : public wxMBConv
 public:
     wxConvBrokenFileNames(const wxChar *charset);
     wxConvBrokenFileNames(const wxConvBrokenFileNames& conv)
-        : m_conv(conv.m_conv ? conv.m_conv->Clone() : NULL)
+        : wxMBConv(),
+          m_conv(conv.m_conv ? conv.m_conv->Clone() : NULL)
     {
     }
     virtual ~wxConvBrokenFileNames() { delete m_conv; }