From 48a8d6d8434908690bc2a51d27f1051bd550c9b0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 27 Jun 2016 15:08:50 +0200 Subject: loplugin:singlevalfields in various Change-Id: Ia0d8f463a4dba9ec63aa0159441e3e607dd3bf5e Reviewed-on: https://gerrit.libreoffice.org/26738 Tested-by: Jenkins Reviewed-by: Noel Grandin --- ucbhelper/source/provider/resultsetmetadata.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'ucbhelper') 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; } -- cgit