X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1c193821a999730fbf6a9bea83763f37daae68f1..7c4728f63395c3641aa62f2b549ee693eb8be978:/src/common/encconv.cpp 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; }