lingucomponent/source/lingutil/lingutil.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit ce3d8addcea0d3c8b6efae1f0d3836325deeb72f Author: jailletc36 <[email protected]> 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 <[email protected]> Tested-by: Markus Mohrhard <[email protected]> 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) _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
