summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-10-08 13:51:22 +0300
committerTor Lillqvist <tml@iki.fi>2012-10-08 13:51:22 +0300
commit3d556fcc1e3b7574b3d7f1d577f2f3bbe673cc9b (patch)
tree7d3b44539e71807657de85e61324731039877992 /lingucomponent
parent3d70fe990dbf977aebf4042e846f2ca173e5b43e (diff)
WaE: variable 'numusr' is uninitialized when used here
Change-Id: I6476df0460f0f1cebb4879f1c732af6a4c48b5f7
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/spellcheck/macosxspell/macspellimp.mm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm b/lingucomponent/source/spellcheck/macosxspell/macspellimp.mm
index ff2a90b4d5ff..f34eabdaee46 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];