[Libreoffice-commits] .: lingucomponent/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Oct 8 03:51:49 PDT 2012
lingucomponent/source/spellcheck/macosxspell/macspellimp.mm | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 3d556fcc1e3b7574b3d7f1d577f2f3bbe673cc9b
Author: Tor Lillqvist <tml at iki.fi>
Date: Mon Oct 8 13:51:22 2012 +0300
WaE: variable 'numusr' is uninitialized when used here
Change-Id: I6476df0460f0f1cebb4879f1c732af6a4c48b5f7
diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
index ff2a90b..f34eabd 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
+++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
@@ -103,7 +103,6 @@ Sequence< Locale > SAL_CALL MacSpellChecker::getLocales()
// dictionary list and the shared dictionary list
// to see what dictionaries the admin/user has installed
- int numusr; // number of user dictionary entries
int numshr; // number of shared dictionary entries
SvtPathOptions aPathOpt;
rtl_TextEncoding aEnc = RTL_TEXTENCODING_UTF8;
@@ -133,7 +132,7 @@ Sequence< Locale > SAL_CALL MacSpellChecker::getLocales()
// users can name their dictionaries anything they want it would
// be impossible to know if a real duplication exists unless we
// add some unique key to each myspell dictionary
- numdict = numshr + numusr;
+ numdict = numshr;
if (numdict) {
aDLocs = new Locale [numdict];
More information about the Libreoffice-commits
mailing list