From 6a5e30d52c345cbeb89eab0722fe866db0d62fc6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 23 Jun 2016 11:06:14 +0200 Subject: loplugin:singlevalfields in xmlhelp,xmloff Change-Id: Ia40d1c9a153b5237c46d5a2b807dceff30775f4a Reviewed-on: https://gerrit.libreoffice.org/26589 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmlhelp/source/cxxhelp/provider/resultsetbase.cxx | 3 +-- xmlhelp/source/cxxhelp/provider/resultsetbase.hxx | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'xmlhelp') diff --git a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx index 8046a771bb4b..9858740ae138 100644 --- a/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx +++ b/xmlhelp/source/cxxhelp/provider/resultsetbase.cxx @@ -38,7 +38,6 @@ ResultSetBase::ResultSetBase( const uno::Reference< uno::XComponentContext >& r m_xProvider( xProvider ), m_nRow( -1 ), m_nWasNull( true ), - m_bRowCountFinal( true ), m_sProperty( seq ), m_pDisposeEventListeners( nullptr ), m_pRowCountListeners( nullptr ), @@ -498,7 +497,7 @@ uno::Any SAL_CALL ResultSetBase::getPropertyValue( { if( PropertyName == "IsRowCountFinal" ) { - return uno::Any(m_bRowCountFinal); + return uno::Any(true); } else if ( PropertyName == "RowCount" ) { diff --git a/xmlhelp/source/cxxhelp/provider/resultsetbase.hxx b/xmlhelp/source/cxxhelp/provider/resultsetbase.hxx index 56a591b4b8f8..4d6d36e04d66 100644 --- a/xmlhelp/source/cxxhelp/provider/resultsetbase.hxx +++ b/xmlhelp/source/cxxhelp/provider/resultsetbase.hxx @@ -487,7 +487,6 @@ namespace chelp { css::uno::Reference< css::ucb::XContentProvider > m_xProvider; sal_Int32 m_nRow; bool m_nWasNull; - bool m_bRowCountFinal; typedef std::vector< css::uno::Reference< css::ucb::XContentIdentifier > > IdentSet; typedef std::vector< css::uno::Reference< css::sdbc::XRow > > ItemSet; -- cgit