diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-29 23:28:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-31 21:12:56 +0100 |
commit | f014ba75fdffaec1bc0f07e92743cacee2f39e71 (patch) | |
tree | 777d600b2bec972397e5c935ab12b18e22da020f /dbaccess | |
parent | 36aeabdc8b06f3e3989dc07f76334bd083d78ef3 (diff) |
convert to new api
this code looks suspiciously like a no-op, i.e. that the intent
is to append the generated string, but the old code threw
away the string, so not a new bug but in there since 2001
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/misc/TokenWriter.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/dbaccess/source/ui/misc/TokenWriter.cxx b/dbaccess/source/ui/misc/TokenWriter.cxx index 1cd369b485df..f4d9aa49a440 100644 --- a/dbaccess/source/ui/misc/TokenWriter.cxx +++ b/dbaccess/source/ui/misc/TokenWriter.cxx @@ -1014,13 +1014,11 @@ void OHTMLImportExport::WriteCell( sal_Int32 nFormat,sal_Int32 nWidthPixel,sal_I try { fVal = m_xFormatter->convertStringToNumber(nFormat,rValue); - ByteString aTmpString(aStrTD); - HTMLOutFuncs::CreateTableDataOptionsValNum( aTmpString, sal_False, fVal,nFormat, *pFormatter ); + HTMLOutFuncs::CreateTableDataOptionsValNum(sal_False, fVal,nFormat, *pFormatter); } - catch(Exception&) + catch(const Exception&) { - ByteString aTmpString(aStrTD); - HTMLOutFuncs::CreateTableDataOptionsValNum( aTmpString, sal_False, fVal,nFormat, *pFormatter ); + HTMLOutFuncs::CreateTableDataOptionsValNum(sal_False, fVal,nFormat, *pFormatter); } } |