[Libreoffice-commits] .: lingucomponent/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sat Oct 6 15:13:23 PDT 2012


 lingucomponent/source/lingutil/lingutil.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit ce3d8addcea0d3c8b6efae1f0d3836325deeb72f
Author: jailletc36 <christophe.jaillet at wanadoo.fr>
Date:   Sat Oct 6 22:38:56 2012 +0200

    cppcheck: Unused variable
    
    Defined the aDicLangInUse within the #ifdef block where it is used.
    
    Change-Id: I872cf178a803c3210898f7f317211a8d3a2d368e
    Reviewed-on: https://gerrit.libreoffice.org/782
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/lingucomponent/source/lingutil/lingutil.cxx b/lingucomponent/source/lingutil/lingutil.cxx
index 6259097..6fe06a5 100644
--- a/lingucomponent/source/lingutil/lingutil.cxx
+++ b/lingucomponent/source/lingutil/lingutil.cxx
@@ -149,14 +149,14 @@ std::vector< SvtLinguConfigDictionaryEntry > GetOldStyleDics( const char *pDicTy
     if (aFormatName.isEmpty() || aDicExtension.Len() == 0)
         return aRes;
 
-    // set of languages to remember the language where it is already
-    // decided to make use of the dictionary.
-    std::set< OUString > aDicLangInUse;
-
 #ifdef SYSTEM_DICTS
     osl::Directory aSystemDicts(aSystemDir);
     if (aSystemDicts.open() == osl::FileBase::E_None)
     {
+        // set of languages to remember the language where it is already
+        // decided to make use of the dictionary.
+        std::set< OUString > aDicLangInUse;
+
         osl::DirectoryItem aItem;
         osl::FileStatus aFileStatus(osl_FileStatus_Mask_FileURL);
         while (aSystemDicts.getNextItem(aItem) == osl::FileBase::E_None)


More information about the Libreoffice-commits mailing list