diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-06-19 11:40:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-06-19 14:11:50 +0100 |
commit | 749ffa2991c3b20e3c250d6473aaada3c1b28710 (patch) | |
tree | 9b9838dcfde973761d33418a180c11f26867d90c /editeng | |
parent | 447e5b4b36271b197660a9383a0f88c2761896c6 (diff) |
move odd IsSimilarChinese debugging thing to local scope
Change-Id: I3abcd97b15d9a8500435fab795a7834fa5745dc9
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/inc/editeng/hangulhanja.hxx | 8 | ||||
-rw-r--r-- | editeng/source/editeng/textconv.cxx | 11 |
2 files changed, 11 insertions, 8 deletions
diff --git a/editeng/inc/editeng/hangulhanja.hxx b/editeng/inc/editeng/hangulhanja.hxx index 25f91bc42ee1..b952530158c7 100644 --- a/editeng/inc/editeng/hangulhanja.hxx +++ b/editeng/inc/editeng/hangulhanja.hxx @@ -141,7 +141,6 @@ namespace editeng static inline sal_Bool IsSimplified( LanguageType nLang ); static inline sal_Bool IsTraditional( LanguageType nLang ); static inline sal_Bool IsChinese( LanguageType nLang ); - static inline sal_Bool IsSimilarChinese( LanguageType nLang1, LanguageType nLang2 ); // used to specify that the conversion direction states from the // last incarnation should be used as @@ -291,13 +290,6 @@ namespace editeng { return IsTraditional( nLang ) || IsSimplified( nLang ); } - - sal_Bool HangulHanjaConversion::IsSimilarChinese( LanguageType nLang1, LanguageType nLang2 ) - { - return (IsTraditional(nLang1) && IsTraditional(nLang2)) || - (IsSimplified(nLang1) && IsSimplified(nLang2)); - } - //............................................................................. } // namespace svx //............................................................................. diff --git a/editeng/source/editeng/textconv.cxx b/editeng/source/editeng/textconv.cxx index e444b036daa9..425bb44ab5ca 100644 --- a/editeng/source/editeng/textconv.cxx +++ b/editeng/source/editeng/textconv.cxx @@ -336,6 +336,17 @@ void TextConvWrapper::HandleNewUnit( SelectNewUnit_impl( nUnitStart, nUnitEnd ); } +#ifdef DBG_UTIL +namespace +{ + sal_Bool IsSimilarChinese( LanguageType nLang1, LanguageType nLang2 ) + { + using namespace editeng; + return (HangulHanjaConversion::IsTraditional(nLang1) && HangulHanjaConversion::IsTraditional(nLang2)) || + (HangulHanjaConversion::IsSimplified(nLang1) && HangulHanjaConversion::IsSimplified(nLang2)); + } +} +#endif void TextConvWrapper::ReplaceUnit( const sal_Int32 nUnitStart, const sal_Int32 nUnitEnd, |