summaryrefslogtreecommitdiff
path: root/ucb
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 /ucb
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 'ucb')
-rw-r--r--ucb/source/ucp/file/filrset.cxx3
-rw-r--r--ucb/source/ucp/file/filrset.hxx1
-rw-r--r--ucb/source/ucp/ftp/ftpresultsetbase.cxx3
-rw-r--r--ucb/source/ucp/ftp/ftpresultsetbase.hxx1
4 files changed, 1 insertions, 7 deletions
diff --git a/ucb/source/ucp/file/filrset.cxx b/ucb/source/ucp/file/filrset.cxx
index f274bc58ee11..2022e9a23e40 100644
--- a/ucb/source/ucp/file/filrset.cxx
+++ b/ucb/source/ucp/file/filrset.cxx
@@ -58,7 +58,6 @@ XResultSet_impl::XResultSet_impl( shell* pMyShell,
, m_pDisposeEventListeners( nullptr )
, m_pRowCountListeners( nullptr )
, m_pIsFinalListeners( nullptr )
- , m_bStatic( false )
, m_nErrorCode( TASKHANDLER_NO_ERROR )
, m_nMinorErrorCode( TASKHANDLER_NO_ERROR )
{
@@ -611,8 +610,6 @@ XResultSet_impl::connectToCache(
{
if( m_xListener.is() )
throw ucb::ListenerAlreadySetException( THROW_WHERE );
- if( m_bStatic )
- throw ucb::ListenerAlreadySetException( THROW_WHERE );
uno::Reference< ucb::XSourceInitialization > xTarget(
xCache, uno::UNO_QUERY );
diff --git a/ucb/source/ucp/file/filrset.hxx b/ucb/source/ucp/file/filrset.hxx
index b047fa9af061..5ebf86dc9fc3 100644
--- a/ucb/source/ucp/file/filrset.hxx
+++ b/ucb/source/ucp/file/filrset.hxx
@@ -564,7 +564,6 @@ class XResultSet_impl : public Notifier,
comphelper::OInterfaceContainerHelper2* m_pIsFinalListeners;
css::uno::Reference< css::ucb::XDynamicResultSetListener > m_xListener;
- bool m_bStatic;
sal_Int32 m_nErrorCode;
sal_Int32 m_nMinorErrorCode;
diff --git a/ucb/source/ucp/ftp/ftpresultsetbase.cxx b/ucb/source/ucp/ftp/ftpresultsetbase.cxx
index 87164d926578..062ef471e0b8 100644
--- a/ucb/source/ucp/ftp/ftpresultsetbase.cxx
+++ b/ucb/source/ucp/ftp/ftpresultsetbase.cxx
@@ -38,7 +38,6 @@ ResultSetBase::ResultSetBase(
m_xProvider( xProvider ),
m_nRow( -1 ),
m_nWasNull( true ),
- m_bRowCountFinal( true ),
m_sProperty( seq ),
m_pDisposeEventListeners( nullptr ),
m_pRowCountListeners( nullptr ),
@@ -502,7 +501,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/ucb/source/ucp/ftp/ftpresultsetbase.hxx b/ucb/source/ucp/ftp/ftpresultsetbase.hxx
index 544f7dd37a9c..426e649f19a2 100644
--- a/ucb/source/ucp/ftp/ftpresultsetbase.hxx
+++ b/ucb/source/ucp/ftp/ftpresultsetbase.hxx
@@ -495,7 +495,6 @@ namespace ftp {
m_xProvider;
sal_Int32 m_nRow;
bool m_nWasNull;
- bool m_bRowCountFinal;
typedef std::vector< css::uno::Reference<css::ucb::XContentIdentifier > >
IdentSet;