summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-28 10:31:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-28 11:30:49 +0200
commit08519ce8265b9b785f369623e1d6ad396c36d349 (patch)
treeb6c63ed7da7f02d3a04a753d3ff8f44dce44b2f7 /ucb
parent6c6c1eea82b259c7aec1e0ed5ff86bfd2eb0243f (diff)
loplugin:constmethod in ucb..uui
Change-Id: I53db381de8e063b6a3aa07051351e655c6f040fa Reviewed-on: https://gerrit.libreoffice.org/79782 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/cacher/cachedcontentresultset.cxx4
-rw-r--r--ucb/source/cacher/cachedcontentresultset.hxx4
-rw-r--r--ucb/source/ucp/file/filinpstr.hxx2
-rw-r--r--ucb/source/ucp/file/filrset.hxx2
-rw-r--r--ucb/source/ucp/file/filstr.hxx2
-rw-r--r--ucb/source/ucp/file/filtask.hxx6
-rw-r--r--ucb/source/ucp/ftp/ftpdirp.hxx2
-rw-r--r--ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx2
-rw-r--r--ucb/source/ucp/webdav-neon/NeonSession.hxx2
-rw-r--r--ucb/source/ucp/webdav-neon/PropfindCache.hxx2
10 files changed, 14 insertions, 14 deletions
diff --git a/ucb/source/cacher/cachedcontentresultset.cxx b/ucb/source/cacher/cachedcontentresultset.cxx
index 15f35adcfea1..2cccf730066b 100644
--- a/ucb/source/cacher/cachedcontentresultset.cxx
+++ b/ucb/source/cacher/cachedcontentresultset.cxx
@@ -162,7 +162,7 @@ bool CachedContentResultSet::CCRS_Cache
}
sal_Int32 CachedContentResultSet::CCRS_Cache
- ::getMaxRow()
+ ::getMaxRow() const
{
if( !m_pResult )
return 0;
@@ -174,7 +174,7 @@ sal_Int32 CachedContentResultSet::CCRS_Cache
}
bool CachedContentResultSet::CCRS_Cache
- ::hasKnownLast()
+ ::hasKnownLast() const
{
if( !m_pResult )
return false;
diff --git a/ucb/source/cacher/cachedcontentresultset.hxx b/ucb/source/cacher/cachedcontentresultset.hxx
index 174fb91ff568..e6febb183b6a 100644
--- a/ucb/source/cacher/cachedcontentresultset.hxx
+++ b/ucb/source/cacher/cachedcontentresultset.hxx
@@ -87,10 +87,10 @@ class CachedContentResultSet
hasCausedException( sal_Int32 nRow );
sal_Int32
- getMaxRow();
+ getMaxRow() const;
bool
- hasKnownLast();
+ hasKnownLast() const;
/// @throws css::sdbc::SQLException
/// @throws css::uno::RuntimeException
diff --git a/ucb/source/ucp/file/filinpstr.hxx b/ucb/source/ucp/file/filinpstr.hxx
index fffa47f62317..1818e52b8f93 100644
--- a/ucb/source/ucp/file/filinpstr.hxx
+++ b/ucb/source/ucp/file/filinpstr.hxx
@@ -47,7 +47,7 @@ namespace fileaccess {
*/
sal_Int32 CtorSuccess() { return m_nErrorCode;}
- sal_Int32 getMinorError() { return m_nMinorErrorCode;}
+ sal_Int32 getMinorError() const { return m_nMinorErrorCode;}
virtual sal_Int32 SAL_CALL
readBytes(
diff --git a/ucb/source/ucp/file/filrset.hxx b/ucb/source/ucp/file/filrset.hxx
index 82c1db908fd2..d9995386714b 100644
--- a/ucb/source/ucp/file/filrset.hxx
+++ b/ucb/source/ucp/file/filrset.hxx
@@ -60,7 +60,7 @@ class XResultSet_impl :
virtual ~XResultSet_impl() override;
sal_Int32 CtorSuccess() { return m_nErrorCode;}
- sal_Int32 getMinorError() { return m_nMinorErrorCode;}
+ sal_Int32 getMinorError() const { return m_nMinorErrorCode;}
// XEventListener
virtual void SAL_CALL
diff --git a/ucb/source/ucp/file/filstr.hxx b/ucb/source/ucp/file/filstr.hxx
index adad07239928..f2f617428af5 100644
--- a/ucb/source/ucp/file/filstr.hxx
+++ b/ucb/source/ucp/file/filstr.hxx
@@ -56,7 +56,7 @@ class XStream_impl : public cppu::WeakImplHelper<
*/
sal_Int32 CtorSuccess() { return m_nErrorCode;}
- sal_Int32 getMinorError() { return m_nMinorErrorCode;}
+ sal_Int32 getMinorError() const { return m_nMinorErrorCode;}
virtual ~XStream_impl() override;
diff --git a/ucb/source/ucp/file/filtask.hxx b/ucb/source/ucp/file/filtask.hxx
index c57ed1978c8a..d3bc3041ec99 100644
--- a/ucb/source/ucp/file/filtask.hxx
+++ b/ucb/source/ucp/file/filtask.hxx
@@ -128,12 +128,12 @@ namespace fileaccess
m_nMinorCode = nMinorCode;
}
- sal_Int32 getInstalledError()
+ sal_Int32 getInstalledError() const
{
return m_nErrorCode;
}
- sal_Int32 getMinorErrorCode()
+ sal_Int32 getMinorErrorCode() const
{
return m_nMinorCode;
}
@@ -148,7 +148,7 @@ namespace fileaccess
}
const css::uno::Reference< css::ucb::XCommandEnvironment >&
- getCommandEnvironment()
+ getCommandEnvironment() const
{
return m_xCommandEnvironment;
}
diff --git a/ucb/source/ucp/ftp/ftpdirp.hxx b/ucb/source/ucp/ftp/ftpdirp.hxx
index 983fab1d29ae..39a13e504a40 100644
--- a/ucb/source/ucp/ftp/ftpdirp.hxx
+++ b/ucb/source/ucp/ftp/ftpdirp.hxx
@@ -53,7 +53,7 @@ namespace ftp {
void SetSec(sal_uInt16 seconds) { Seconds = seconds; }
void SetNanoSec(sal_uInt32 nanoSec) { NanoSeconds = nanoSec; }
- sal_uInt16 GetMonth() { return Month; }
+ sal_uInt16 GetMonth() const { return Month; }
};
diff --git a/ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx b/ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx
index 8aeaf9be2a77..8880bf9ab8b3 100644
--- a/ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx
+++ b/ucb/source/ucp/webdav-neon/DAVSessionFactory.hxx
@@ -67,7 +67,7 @@ public:
const ::uno::Sequence< css::beans::NamedValue >& rFlags,
const ::uno::Reference< ::uno::XComponentContext >& rxContext );
- const ::uno::Reference< ::uno::XComponentContext >& getComponentContext() { return m_xContext; }
+ const ::uno::Reference< ::uno::XComponentContext >& getComponentContext() const { return m_xContext; }
private:
typedef std::map< OUString, DAVSession * > Map;
diff --git a/ucb/source/ucp/webdav-neon/NeonSession.hxx b/ucb/source/ucp/webdav-neon/NeonSession.hxx
index df4522da6e18..061d97eda30c 100644
--- a/ucb/source/ucp/webdav-neon/NeonSession.hxx
+++ b/ucb/source/ucp/webdav-neon/NeonSession.hxx
@@ -198,7 +198,7 @@ public:
const OUString & getHostName() const { return m_aHostName; }
- ::uno::Reference< ::uno::XComponentContext > const & getComponentContext()
+ ::uno::Reference< ::uno::XComponentContext > const & getComponentContext() const
{ return m_xFactory->getComponentContext(); }
const void * getRequestData() const { return m_pRequestData; }
diff --git a/ucb/source/ucp/webdav-neon/PropfindCache.hxx b/ucb/source/ucp/webdav-neon/PropfindCache.hxx
index d6cb13df6935..f78e4d361d52 100644
--- a/ucb/source/ucp/webdav-neon/PropfindCache.hxx
+++ b/ucb/source/ucp/webdav-neon/PropfindCache.hxx
@@ -48,7 +48,7 @@ namespace webdav_ucp
OUString& getURL() { return m_sURL; };
- const std::vector< DAVResourceInfo >& getPropertiesNames() { return m_aPropertiesNames; };
+ const std::vector< DAVResourceInfo >& getPropertiesNames() const { return m_aPropertiesNames; };
void setPropertiesNames( const std::vector< DAVResourceInfo >& aPropertiesNames ) { m_aPropertiesNames = aPropertiesNames; };
};