]> git.saurik.com Git - wxWidgets.git/commitdiff
warnings fixes for !wxUSE_FONTMAP
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 31 Jul 2006 12:28:05 +0000 (12:28 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 31 Jul 2006 12:28:05 +0000 (12:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/strconv.cpp

index 06f7637db84f7ed735a63d4e5c2a3fad2b9b6268..8936454dfe22886d4e19cedaf0c443d4346436d7 100644 (file)
@@ -3306,7 +3306,9 @@ wxMBConv *wxCSConv::DoCreate() const
 #endif // !wxUSE_FONTMAP
     {
         wxString name(m_name);
+#if wxUSE_FONTMAP
         wxFontEncoding encoding(m_encoding);
+#endif
 
         if ( !name.empty() )
         {
@@ -3475,7 +3477,7 @@ wxMBConv *wxCSConv::DoCreate() const
 #if wxUSE_FONTMAP
                          wxFontMapperBase::GetEncodingDescription(m_encoding).c_str()
 #else // !wxUSE_FONTMAP
-                         wxString::Format(_("encoding %s"), m_encoding).c_str()
+                         wxString::Format(_("encoding %i"), m_encoding).c_str()
 #endif // wxUSE_FONTMAP/!wxUSE_FONTMAP
               );