]> git.saurik.com Git - wxWidgets.git/commitdiff
fix for a warning
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 12 Jul 2003 11:11:01 +0000 (11:11 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 12 Jul 2003 11:11:01 +0000 (11:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/encconv.cpp

index 5ad61864642eca6e5238292ef6dbc447c3335b12..802aca454e7774f2ee5a03ef48f8c2092800b2fa 100644 (file)
@@ -121,10 +121,8 @@ bool wxEncodingConverter::Init(wxFontEncoding input_enc, wxFontEncoding output_e
             m_Table[out_tbl[i]] = (tchar)(128 + i);
 
         m_UnicodeInput = TRUE;
-        return TRUE;
     }
-
-    else
+    else // input !Unicode
     {
         if ((in_tbl = GetEncTable(input_enc)) == NULL) return FALSE;
         if (output_enc != wxFONTENCODING_UNICODE)
@@ -142,7 +140,7 @@ bool wxEncodingConverter::Init(wxFontEncoding input_enc, wxFontEncoding output_e
         }
         // FIXME: write a substitute for bsearch
 #ifndef __WXWINCE__
-        else
+        else // output !Unicode
         {
             CharsetItem *rev = BuildReverseTable(out_tbl);
             CharsetItem *item;
@@ -166,11 +164,11 @@ bool wxEncodingConverter::Init(wxFontEncoding input_enc, wxFontEncoding output_e
             }
 
             delete[] rev;
-            return TRUE;
         }
-#endif
-        return TRUE;
+#endif // !__WXWINCE__
     }
+
+    return TRUE;
 }