chart2/source/tools/PropertyHelper.cxx | 2 +- lotuswordpro/source/filter/lwpfribmark.cxx | 2 +- mysqlc/source/mysqlc_resultset.cxx | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-)
New commits: commit 8a8b1ae3e9c1d782bf1cf170f5498992a4f680fe Author: Stephan Bergmann <sberg...@redhat.com> Date: Fri Jun 14 18:18:37 2013 +0200 Some more toInt32 clean up Change-Id: I4f7911cb283d67e7c7b883d629b39588e96f32c2 diff --git a/chart2/source/tools/PropertyHelper.cxx b/chart2/source/tools/PropertyHelper.cxx index fb6b0bf..6bbd339 100644 --- a/chart2/source/tools/PropertyHelper.cxx +++ b/chart2/source/tools/PropertyHelper.cxx @@ -86,7 +86,7 @@ struct lcl_OUStringRestToInt32 : public ::std::unary_function< OUString, sal_Int { if( m_nPrefixLength > rStr.getLength() ) return 0; - return rStr.copy( m_nPrefixLength ).toInt32( 10 /* radix */ ); + return rStr.copy( m_nPrefixLength ).toInt32(); } private: sal_Int32 m_nPrefixLength; diff --git a/lotuswordpro/source/filter/lwpfribmark.cxx b/lotuswordpro/source/filter/lwpfribmark.cxx index 5c293eb..79498b7 100644 --- a/lotuswordpro/source/filter/lwpfribmark.cxx +++ b/lotuswordpro/source/filter/lwpfribmark.cxx @@ -318,7 +318,7 @@ void LwpFribField::XFConvert(XFContentContainer* pXFPara) XFEntry* pEntry = new XFEntry; pEntry->SetEntryType(enumXFEntryTOC); pEntry->SetStringValue(sText); - pEntry->SetOutlineLevel(sLevel.toInt32(10)); + pEntry->SetOutlineLevel(sLevel.toInt32()); pXFPara->Add(pEntry); } } diff --git a/mysqlc/source/mysqlc_resultset.cxx b/mysqlc/source/mysqlc_resultset.cxx index b0bd528..b2793ad 100644 --- a/mysqlc/source/mysqlc_resultset.cxx +++ b/mysqlc/source/mysqlc_resultset.cxx @@ -291,13 +291,13 @@ Date SAL_CALL OResultSet::getDate(sal_Int32 column) token = dateString.getToken (0, '-', nIndex); switch (i) { case 0: - d.Year = static_cast<sal_uInt16>(token.toInt32(10)); + d.Year = static_cast<sal_uInt16>(token.toUInt32()); break; case 1: - d.Month = static_cast<sal_uInt16>(token.toInt32(10)); + d.Month = static_cast<sal_uInt16>(token.toUInt32()); break; case 2: - d.Day = static_cast<sal_uInt16>(token.toInt32(10)); + d.Day = static_cast<sal_uInt16>(token.toUInt32()); break; default:; } @@ -566,13 +566,13 @@ Time SAL_CALL OResultSet::getTime(sal_Int32 column) token = timeString.getToken (0, ':', nIndex); switch (i) { case 0: - t.Hours = static_cast<sal_uInt16>(token.toInt32(10)); + t.Hours = static_cast<sal_uInt16>(token.toUInt32()); break; case 1: - t.Minutes = static_cast<sal_uInt16>(token.toInt32(10)); + t.Minutes = static_cast<sal_uInt16>(token.toUInt32()); break; case 2: - t.Seconds = static_cast<sal_uInt16>(token.toInt32(10)); + t.Seconds = static_cast<sal_uInt16>(token.toUInt32()); break; } i++; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits