summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-29 23:28:34 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-31 21:12:56 +0100
commit418a853461a6a059468b87e10af852b57bc50d49 (patch)
tree58fc86490c8217818fa054290b8489b2f2fde076
parent109b854ef29f990b804b8364ee2061d55768c03b (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
-rw-r--r--dbaccess/source/ui/misc/TokenWriter.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/dbaccess/source/ui/misc/TokenWriter.cxx b/dbaccess/source/ui/misc/TokenWriter.cxx
index b46034336..78938c6a9 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);
}
}