[Libreoffice-commits] core.git: svl/source
Julien Nabet
serval2412 at yahoo.fr
Tue Apr 22 13:51:26 PDT 2014
svl/source/config/cjkoptions.cxx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit 1893ca5fd5fe66265af43473436b2943b35e1f2b
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Tue Apr 22 22:50:55 2014 +0200
cppcheck: fix variable reassigned before the old value has been used
Change-Id: I866eaf946d4cd8eaa8e4b8799ddac5e0d5dc59bb
diff --git a/svl/source/config/cjkoptions.cxx b/svl/source/config/cjkoptions.cxx
index 05a4f5e..cf2500e 100644
--- a/svl/source/config/cjkoptions.cxx
+++ b/svl/source/config/cjkoptions.cxx
@@ -199,11 +199,9 @@ void SvtCJKOptions_Impl::Load()
if (!bCJKFont)
{
- bool bAutoEnableCJK = false;
-
sal_uInt16 nScriptType = SvtLanguageOptions::GetScriptTypeOfLanguage(LANGUAGE_SYSTEM);
//system locale is CJK
- bAutoEnableCJK = (nScriptType & SCRIPTTYPE_ASIAN);
+ bool bAutoEnableCJK = (nScriptType & SCRIPTTYPE_ASIAN);
if (!bAutoEnableCJK)
{
More information about the Libreoffice-commits
mailing list