WaE: variable 'numusr' is uninitialized when used here
Change-Id: I6476df0460f0f1cebb4879f1c732af6a4c48b5f7
This commit is contained in:
@@ -103,7 +103,6 @@ Sequence< Locale > SAL_CALL MacSpellChecker::getLocales()
|
|||||||
// dictionary list and the shared dictionary list
|
// dictionary list and the shared dictionary list
|
||||||
// to see what dictionaries the admin/user has installed
|
// to see what dictionaries the admin/user has installed
|
||||||
|
|
||||||
int numusr; // number of user dictionary entries
|
|
||||||
int numshr; // number of shared dictionary entries
|
int numshr; // number of shared dictionary entries
|
||||||
SvtPathOptions aPathOpt;
|
SvtPathOptions aPathOpt;
|
||||||
rtl_TextEncoding aEnc = RTL_TEXTENCODING_UTF8;
|
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
|
// users can name their dictionaries anything they want it would
|
||||||
// be impossible to know if a real duplication exists unless we
|
// be impossible to know if a real duplication exists unless we
|
||||||
// add some unique key to each myspell dictionary
|
// add some unique key to each myspell dictionary
|
||||||
numdict = numshr + numusr;
|
numdict = numshr;
|
||||||
|
|
||||||
if (numdict) {
|
if (numdict) {
|
||||||
aDLocs = new Locale [numdict];
|
aDLocs = new Locale [numdict];
|
||||||
|
Reference in New Issue
Block a user