diff options
author | Ricardo Montania <ricardo@linuxafundo.com.br> | 2013-05-20 07:30:19 -0300 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-05-22 21:03:56 +0000 |
commit | b7df3446c373a93dc5b77b495a54d873d83a91a7 (patch) | |
tree | 1de5e9567eaf1e7c5115e6b968ec4e49c45af3c1 /sc/source/filter/dif/difimp.cxx | |
parent | 8eb1fb9eff4d4eea9c0c1c2e8d3b380e227b5d50 (diff) |
AppendAscii cleanup
Change-Id: I7398272de0bd340ebfb5f31b314d32fcff007eec
Reviewed-on: https://gerrit.libreoffice.org/3974
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'sc/source/filter/dif/difimp.cxx')
-rw-r--r-- | sc/source/filter/dif/difimp.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sc/source/filter/dif/difimp.cxx b/sc/source/filter/dif/difimp.cxx index 734253a6de93..816b2216ba15 100644 --- a/sc/source/filter/dif/difimp.cxx +++ b/sc/source/filter/dif/difimp.cxx @@ -533,12 +533,9 @@ DATASET DifParser::GetNextDataset( void ) ReadNextLine( aTmpLine ); if ( eRet == D_SYNT_ERROR ) { // for broken records write "#ERR: data" to cell - String aTmp( RTL_CONSTASCII_USTRINGPARAM( "#ERR: " )); - aTmp += pAktBuffer; - aTmp.AppendAscii( " (" ); - OSL_ENSURE( aTmpLine.getLength() <= STRING_MAXLEN - aTmp.Len() - 1, "GetNextDataset(): line doesn't fit into data"); - aTmp += aTmpLine; - aTmp += sal_Unicode(')'); + OUString aTmp = "#ERR: " + OUString( pAktBuffer ) + " ("; + OSL_ENSURE( aTmpLine.getLength() <= STRING_MAXLEN - aTmp.getLength() - 1, "GetNextDataset(): line doesn't fit into data"); + aTmp += aTmpLine + ")"; aData = aTmp; eRet = D_STRING; } |