Kaydet (Commit) 3d556fcc authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: variable 'numusr' is uninitialized when used here

Change-Id: I6476df0460f0f1cebb4879f1c732af6a4c48b5f7
üst 3d70fe99
...@@ -103,7 +103,6 @@ Sequence< Locale > SAL_CALL MacSpellChecker::getLocales() ...@@ -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() ...@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment