summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorOcke Janssen <oj@openoffice.org>2000-12-14 07:32:10 +0000
committerOcke Janssen <oj@openoffice.org>2000-12-14 07:32:10 +0000
commite73c61863d72deb623359c061643202568bf86cf (patch)
treee5f99f3299431f1c43d3a088bbc6342411711040 /connectivity
parent2dda2ca1b2ac4573af80c4f5f03cfe7a255d8985 (diff)
#82004# use of private toDouble
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/flat/ETable.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/connectivity/source/drivers/flat/ETable.cxx b/connectivity/source/drivers/flat/ETable.cxx
index 5c8bebcb3e4b..f68015be95a1 100644
--- a/connectivity/source/drivers/flat/ETable.cxx
+++ b/connectivity/source/drivers/flat/ETable.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ETable.cxx,v $
*
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
- * last change: $Author: oj $ $Date: 2000-12-13 15:21:14 $
+ * last change: $Author: oj $ $Date: 2000-12-14 08:32:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -155,6 +155,8 @@ using namespace ::com::sun::star::sdbcx;
using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::container;
using namespace ::com::sun::star::lang;
+
+double toDouble(const ByteString& rString);
//------------------------------------------------------------------
xub_StrLen OFlatString::GetTokenCount( sal_uInt8 cTok, sal_uInt8 cStrDel ) const
{
@@ -397,7 +399,7 @@ void OFlatTable::fillColumns()
{
try
{
- nIndex = m_xNumberFormatter->detectNumberFormat(::com::sun::star::util::NumberFormat::ALL,String(aField,pConnection->getTextEncoding()));
+ nIndex = m_xNumberFormatter->detectNumberFormat(::com::sun::star::util::NumberFormat::ALL,String(aField2,pConnection->getTextEncoding()));
}
catch(Exception&)
{
@@ -924,7 +926,8 @@ sal_Bool OFlatTable::fetchRow(file::OValueRow _rRow,const OSQLColumns & _rCols,s
else
aStrConverted += aStr.GetChar(j) ;
}
- (*_rRow)[i] = aStrConverted.ToDouble();
+ double nVal = toDouble(aStrConverted);
+ (*_rRow)[i] = nVal;
} break;
default:
{