diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-06-14 18:18:37 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-06-14 18:33:07 +0200 |
commit | 8a8b1ae3e9c1d782bf1cf170f5498992a4f680fe (patch) | |
tree | c91bfecb050df43b7098c7aa5763e975b158741d /mysqlc | |
parent | 5a0781a213c944900c5b84d3733c0b71934f817f (diff) |
Some more toInt32 clean up
Change-Id: I4f7911cb283d67e7c7b883d629b39588e96f32c2
Diffstat (limited to 'mysqlc')
-rw-r--r-- | mysqlc/source/mysqlc_resultset.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mysqlc/source/mysqlc_resultset.cxx b/mysqlc/source/mysqlc_resultset.cxx index b0bd52881bfe..b2793adff6c8 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++; |