diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-06-12 09:35:34 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-06-12 09:35:34 +0000 |
commit | 2a42737321fd6f65d4f9e4acab46c14d8ba791eb (patch) | |
tree | e63c8f0eeab29a3836326f6007a6d9cef3faa202 /lingucomponent/source | |
parent | 9ef75a6cadf9e92328289a9eda143d43300015ef (diff) |
INTEGRATION: CWS mh11rc (1.8.6); FILE MERGED
2003/06/10 08:32:25 mh 1.8.6.2: one more update from ooo11beta2
2003/06/06 08:55:24 mh 1.8.6.1: join: from beta2
Diffstat (limited to 'lingucomponent/source')
-rw-r--r-- | lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx index e997ffe74741..03d39f57b44d 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.8 $ + * $Revision: 1.9 $ * - * last change: $Author: hr $ $Date: 2003-04-28 17:04:41 $ + * last change: $Author: vg $ $Date: 2003-06-12 10:35:34 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -159,7 +159,7 @@ Hyphenator::~Hyphenator() if (pPropHelper) pPropHelper->RemoveAsPropListener(); if (numdict) { - delete[] aDicts; + if (aDicts) delete[] aDicts; aDicts = NULL; numdict = 0; } @@ -285,17 +285,10 @@ Sequence< Locale > SAL_CALL Hyphenator::getLocales() aSuppLocales.realloc(numlocs); } else { - // no dictionary.lst files found, just default to hyph_en.dic - numdict = 1; - aSuppLocales.realloc(1); - Locale *pLocale = aSuppLocales.getArray(); - Locale nLoc( A2OU("en"), A2OU("US"), OUString() ); - pLocale[0] = nLoc; - aDicts = new HDInfo[1]; - aDicts[0].aPtr = NULL; - aDicts[0].aLoc = nLoc; - aDicts[0].aEnc = 0; - aDicts[0].aName = A2OU("hyph_en"); + // no dictionary.lst files found so register no dics + numdict = 0; + aSuppLocales.realloc(0); + aDicts = NULL; } /* de-allocation of memory is handled inside the DictMgr */ @@ -442,8 +435,8 @@ Hyphenator::hyphenate( const ::rtl::OUString& aWord, } hyphenatedWord = hyphenatedWordBuffer.makeStringAndClear(); - fprintf(stderr,"result is %s\n",OU2A(hyphenatedWord)); - fflush(stderr); + // fprintf(stderr,"result is %s\n",OU2A(hyphenatedWord)); + // fflush(stderr); if (nHyphenationPos == -1) xRes = NULL; else @@ -587,8 +580,8 @@ Reference< XPossibleHyphens > SAL_CALL } hyphenatedWord = hyphenatedWordBuffer.makeStringAndClear(); - fprintf(stderr,"result is %s\n",OU2A(hyphenatedWord)); - fflush(stderr); + // fprintf(stderr,"result is %s\n",OU2A(hyphenatedWord)); + // fflush(stderr); xRes = new PossibleHyphens( aWord, LocaleToLanguage( aLocale ), hyphenatedWord, aHyphPos ); |