From: Vadim Zeitlin Date: Sat, 12 Jul 2003 11:11:01 +0000 (+0000) Subject: fix for a warning X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b8c253ec507b79e36dd82cf257ba85c9f40acf47 fix for a warning git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/encconv.cpp b/src/common/encconv.cpp index 5ad6186464..802aca454e 100644 --- a/src/common/encconv.cpp +++ b/src/common/encconv.cpp @@ -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; }