diff options
author | 66kesara99 <dev.kesara@gmail.com> | 2017-09-23 07:07:14 +0530 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-09-24 20:18:56 +0200 |
commit | 16549dc267149aaf098191591acb20024ea21513 (patch) | |
tree | 6037a3e72b2289ed353f75e60faa60b0ba7b24f3 /connectivity | |
parent | 3f19b593019a62d97c8739e38c32902d7e19d790 (diff) |
tdf#96505 Get rid of cargo cult "long" integer literals
Remove unnecessary "Long" literals in multiple locations
Change-Id: Icc44546f10fed841683053eee01b788274e0add1
Reviewed-on: https://gerrit.libreoffice.org/42683
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'connectivity')
-rw-r--r-- | connectivity/source/commontools/dbtools.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/component/CTable.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/dbase/DTable.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/commontools/dbtools.cxx b/connectivity/source/commontools/dbtools.cxx index 16c3d9b7782e..445d0e639275 100644 --- a/connectivity/source/commontools/dbtools.cxx +++ b/connectivity/source/commontools/dbtools.cxx @@ -175,7 +175,7 @@ sal_Int32 getDefaultNumberFormat(sal_Int32 _nDataType, { // generate a new format if necessary Reference< XNumberFormats > xFormats(_xTypes, UNO_QUERY); - OUString sNewFormat = xFormats->generateFormat( 0L, _rLocale, false, false, (sal_Int16)_nScale, 1); + OUString sNewFormat = xFormats->generateFormat( 0, _rLocale, false, false, (sal_Int16)_nScale, 1); // and add it to the formatter if necessary nFormat = xFormats->queryKey(sNewFormat, _rLocale, false); diff --git a/connectivity/source/drivers/component/CTable.cxx b/connectivity/source/drivers/component/CTable.cxx index a7e17a658874..c1a5e29b20fe 100644 --- a/connectivity/source/drivers/component/CTable.cxx +++ b/connectivity/source/drivers/component/CTable.cxx @@ -168,7 +168,7 @@ bool OComponentTable::seekRow(IResultSetHelper::Movement eCursorPosition, sal_In m_nFilePos = nNumberOfRecords; break; case IResultSetHelper::RELATIVE1: - m_nFilePos = (m_nFilePos + nOffset < 0) ? 0L + m_nFilePos = (m_nFilePos + nOffset < 0) ? 0 : (sal_uInt32)(m_nFilePos + nOffset); break; case IResultSetHelper::ABSOLUTE1: diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx index bed2e67af14b..a5574288a248 100644 --- a/connectivity/source/drivers/dbase/DTable.cxx +++ b/connectivity/source/drivers/dbase/DTable.cxx @@ -2568,7 +2568,7 @@ bool ODbaseTable::seekRow(IResultSetHelper::Movement eCursorPosition, sal_Int32 m_nFilePos = nNumberOfRecords; break; case IResultSetHelper::RELATIVE1: - m_nFilePos = (m_nFilePos + nOffset < 0) ? 0L + m_nFilePos = (m_nFilePos + nOffset < 0) ? 0 : (sal_uInt32)(m_nFilePos + nOffset); break; case IResultSetHelper::ABSOLUTE1: |