diff options
-rw-r--r-- | lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx index aa9e5f14b8f3..48bf1146157c 100644 --- a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx +++ b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: hyphenimp.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: rt $ $Date: 2003-12-01 16:13:27 $ + * last change: $Author: hr $ $Date: 2004-02-02 20:17:06 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -149,8 +149,8 @@ Hyphenator::Hyphenator() : { bDisposing = FALSE; pPropHelper = NULL; + aDicts = NULL; numdict = 0; - } @@ -158,7 +158,7 @@ Hyphenator::~Hyphenator() { if (pPropHelper) pPropHelper->RemoveAsPropListener(); - if (numdict) { + if ((aDicts) || (numdict)) { if (aDicts) delete[] aDicts; aDicts = NULL; numdict = 0; @@ -320,9 +320,9 @@ sal_Bool SAL_CALL Hyphenator::hasLocale(const Locale& rLocale) getLocales(); INT32 nLen = aSuppLocales.getLength(); + const Locale *pLocale = aSuppLocales.getConstArray(); for (INT32 i = 0; i < nLen; ++i) { - const Locale *pLocale = aSuppLocales.getConstArray(); if (rLocale == pLocale[i]) { bRes = TRUE; |