From: Vadim Zeitlin Date: Thu, 6 Apr 2006 17:11:25 +0000 (+0000) Subject: fixed gcc warnings about not initializing the base class in copy ctor X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2e2cf78dc1f2db0caa8b982a072e88d13c8303cf fixed gcc warnings about not initializing the base class in copy ctor git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/convauto.h b/include/wx/convauto.h index 1e32c72c07..89682525ef 100644 --- a/include/wx/convauto.h +++ b/include/wx/convauto.h @@ -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; } diff --git a/include/wx/strconv.h b/include/wx/strconv.h index 134434405a..e2ef14a6ba 100644 --- a/include/wx/strconv.h +++ b/include/wx/strconv.h @@ -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; }