diff options
author | jailletc36 <christophe.jaillet@wanadoo.fr> | 2012-10-06 22:38:56 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-10-06 22:13:03 +0000 |
commit | ce3d8addcea0d3c8b6efae1f0d3836325deeb72f (patch) | |
tree | c960fbfeb17ff44ca8e7008692881741fd0abf4c /lingucomponent | |
parent | 73c3907bce33c07ef78c0bb9ff1e0df8b9fbb323 (diff) |
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@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'lingucomponent')
-rw-r--r-- | lingucomponent/source/lingutil/lingutil.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lingucomponent/source/lingutil/lingutil.cxx b/lingucomponent/source/lingutil/lingutil.cxx index 6259097c888a..6fe06a51663c 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) |