]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed MSVC's problems...
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 19 Mar 2002 00:04:02 +0000 (00:04 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 19 Mar 2002 00:04:02 +0000 (00:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/intl.cpp

index ad3ce22570fa6eef4cd32769034ad94ee53786c2..e8b3ea68180d183ca25c174f3defe85c8ad22e03 100644 (file)
@@ -420,7 +420,7 @@ void wxMsgCatalogFile::FillHash(wxMessagesHash& hash, bool convertEncoding) cons
     if ( !!charset )
         csConv = new wxCSConv(charset);
 
-    wxMBConv& inputConv = csConv ? *csConv : *wxConvCurrent;
+    wxMBConv& inputConv = csConv ? *((wxMBConv*)csConv) : *wxConvCurrent;
 
     for (size_t i = 0; i < m_numStrings; i++)
     {
@@ -539,8 +539,8 @@ bool wxMsgCatalog::Load(const wxChar *szDirPrefix, const wxChar *szName,
         file.FillHash(m_messages, bConvertEncoding);
         return TRUE;
     }
-    else
-        return FALSE;
+
+    return FALSE;
 }
 
 const wxChar *wxMsgCatalog::GetString(const wxChar *sz) const