WaE: variable 'numusr' is uninitialized when used here

Change-Id: I6476df0460f0f1cebb4879f1c732af6a4c48b5f7
This commit is contained in:
Tor Lillqvist
2012-10-08 13:51:22 +03:00
parent 3d70fe990d
commit 3d556fcc1e

View File

@@ -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];