diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-01 22:27:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-01 22:27:20 +0100 |
commit | ce5702fca8e7bc6c6f82a0de24abeafc6b316fef (patch) | |
tree | 9ab451233897e458026b937d9166686958eaf513 /l10ntools/source/xrmmerge.cxx | |
parent | 5e692599df6d47b614b488796747f5faadea63f7 (diff) |
ByteString::CreateFromInt32 -> OString::valueOf
Diffstat (limited to 'l10ntools/source/xrmmerge.cxx')
-rw-r--r-- | l10ntools/source/xrmmerge.cxx | 16 |
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; } /*****************************************************************************/ |