summaryrefslogtreecommitdiff
path: root/transex3
diff options
context:
space:
mode:
authorNils Fuhrmann <nf@openoffice.org>2003-07-14 07:39:00 +0000
committerNils Fuhrmann <nf@openoffice.org>2003-07-14 07:39:00 +0000
commit849cb52dfe480c4455e8da2293c75ae2690affc3 (patch)
tree6ffe42e633684ea98f596990e477b82dc559dde8 /transex3
parentc08f88d23e664e529d9442e97d00c43089dadbc0 (diff)
#110799#
Diffstat (limited to 'transex3')
-rw-r--r--transex3/source/cfgmerge.cxx19
1 files changed, 9 insertions, 10 deletions
diff --git a/transex3/source/cfgmerge.cxx b/transex3/source/cfgmerge.cxx
index 9b1151f34ba6..711d196d1457 100644
--- a/transex3/source/cfgmerge.cxx
+++ b/transex3/source/cfgmerge.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: cfgmerge.cxx,v $
*
- * $Revision: 1.27 $
+ * $Revision: 1.28 $
*
- * last change: $Author: nf $ $Date: 2003-07-11 10:10:59 $
+ * last change: $Author: nf $ $Date: 2003-07-14 08:39:00 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -421,19 +421,18 @@ void CfgParser::AddText(
{
USHORT nLang = Export::GetLangByIsoLang( rIsoLang );
if ( nLang != 0xFFFF ) {
- ByteString sText = rText;
USHORT nTextLen = 0;
- while ( sText.Len() != nTextLen ) {
- nTextLen = sText.Len();
- sText.SearchAndReplaceAll( "\n", " " );
- sText.SearchAndReplaceAll( "\r", " " );
- sText.SearchAndReplaceAll( "\t", " " );
- sText.SearchAndReplaceAll( " ", " " );
+ while ( rText.Len() != nTextLen ) {
+ nTextLen = rText.Len();
+ rText.SearchAndReplaceAll( "\n", " " );
+ rText.SearchAndReplaceAll( "\r", " " );
+ rText.SearchAndReplaceAll( "\t", " " );
+ rText.SearchAndReplaceAll( " ", " " );
}
USHORT nLangIndex = Export::GetLangIndex( nLang );
pStackData->sResTyp = rResTyp;
WorkOnText( rText, nLangIndex, rResTyp );
- pStackData->sText[ nLangIndex ] = sText;
+ pStackData->sText[ nLangIndex ] = rText;
}
else if ( rIsoLang != NO_TRANSLATE_ISO ) {
ByteString sError( "Unknown language code: " );