summaryrefslogtreecommitdiff
path: root/ucbhelper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-06-27 15:08:50 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-28 11:21:17 +0000
commit48a8d6d8434908690bc2a51d27f1051bd550c9b0 (patch)
tree066f8fc9753bdba62f87f205baface6e729857bf /ucbhelper
parentf7d6f3e4e3fda3cd4936880918e2831246634a3e (diff)
loplugin:singlevalfields in various
Change-Id: Ia0d8f463a4dba9ec63aa0159441e3e607dd3bf5e Reviewed-on: https://gerrit.libreoffice.org/26738 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'ucbhelper')
-rw-r--r--ucbhelper/source/provider/resultsetmetadata.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/ucbhelper/source/provider/resultsetmetadata.cxx b/ucbhelper/source/provider/resultsetmetadata.cxx
index 0b84e84993d7..5a6d651a8a48 100644
--- a/ucbhelper/source/provider/resultsetmetadata.cxx
+++ b/ucbhelper/source/provider/resultsetmetadata.cxx
@@ -151,18 +151,14 @@ sal_Int32 SAL_CALL ResultSetMetaData::getColumnCount()
// virtual
-sal_Bool SAL_CALL ResultSetMetaData::isAutoIncrement( sal_Int32 column )
+sal_Bool SAL_CALL ResultSetMetaData::isAutoIncrement( sal_Int32 /*column*/ )
throw( SQLException, RuntimeException, std::exception )
{
/*
Checks whether column is automatically numbered, which makes it
read-only.
*/
-
- if ( ( column < 1 ) || ( column > m_aProps.getLength() ) )
- return false;
-
- return m_pImpl->m_aColumnData[ column - 1 ].isAutoIncrement;
+ return false;
}