summaryrefslogtreecommitdiff
path: root/l10ntools/source/xrmmerge.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-01 22:27:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-01 22:27:20 +0100
commitce5702fca8e7bc6c6f82a0de24abeafc6b316fef (patch)
tree9ab451233897e458026b937d9166686958eaf513 /l10ntools/source/xrmmerge.cxx
parent5e692599df6d47b614b488796747f5faadea63f7 (diff)
ByteString::CreateFromInt32 -> OString::valueOf
Diffstat (limited to 'l10ntools/source/xrmmerge.cxx')
-rw-r--r--l10ntools/source/xrmmerge.cxx16
1 files changed, 9 insertions, 7 deletions
diff --git a/l10ntools/source/xrmmerge.cxx b/l10ntools/source/xrmmerge.cxx
index e682463bf523..064d908ae04f 100644
--- a/l10ntools/source/xrmmerge.cxx
+++ b/l10ntools/source/xrmmerge.cxx
@@ -526,14 +526,16 @@ void XRMResExport::WorkOnText(
{
ByteString sLang( GetAttribute( rOpenTag, "xml:lang" ));
- if ( !pResData ) {
- ByteString sPlatform( "" );
- pResData = new ResData( sPlatform, GetGID() );
- pResData->sId = GetLID();
- }
+ if ( !pResData )
+ {
+ ByteString sPlatform( "" );
+ pResData = new ResData( sPlatform, GetGID() );
+ pResData->sId = GetLID();
+ }
- pResData->sText[ sLang ] = rText;
- ConvertStringToDBFormat( pResData->sText[ sLang ] );
+ ByteString sText(rText);
+ ConvertStringToDBFormat(sText);
+ pResData->sText[sLang] = sText;
}
/*****************************************************************************/