diff options
author | Rüdiger Timm <rt@openoffice.org> | 2005-04-04 07:20:15 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2005-04-04 07:20:15 +0000 |
commit | a125351349d3b9217ae4660a7d1ea2397302f575 (patch) | |
tree | 7b48900f50b8bafb838d682d9f4d83509cf28e01 /linguistic | |
parent | dc0b865ee63fe28eb4a9d083a2744882f93039a5 (diff) |
INTEGRATION: CWS tl07 (1.5.2); FILE MERGED
2005/01/12 09:08:02 tl 1.5.2.1: #i39936# resized returned sequence to actually used size
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/convdic.cxx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/linguistic/source/convdic.cxx b/linguistic/source/convdic.cxx index e751230e316e..875867e99ffd 100644 --- a/linguistic/source/convdic.cxx +++ b/linguistic/source/convdic.cxx @@ -2,9 +2,9 @@ * * $RCSfile: convdic.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: rt $ $Date: 2004-11-26 14:28:40 $ + * last change: $Author: rt $ $Date: 2005-04-04 08:20:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -607,13 +607,15 @@ uno::Sequence< OUString > SAL_CALL ConvDic::getConversionEntries( while (aIt != rConvMap.end()) { OUString aCurEntry( (*aIt).first ); - // skip duplicate entries + // skip duplicate entries ( duplicate = duplicate entries + // respective to the evaluated side (FROM_LEFT or FROM_RIGHT). + // Thus if FROM_LEFT is evaluated for pairs (A,B) and (A,C) + // only one entry for A will be returned in the result) if (nIdx == 0 || !lcl_SeqHasEntry( pRes, nIdx, aCurEntry )) pRes[ nIdx++ ] = aCurEntry; ++aIt; } - //DBG_ASSERT( nIdx == rConvMap.size(), - // "ConvDic::getConversionEntries: size/index mismatch" ); + aRes.realloc( nIdx ); return aRes; } |