From 7a769391772b1184d801a123fb226017e8d65848 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 21 Aug 2019 20:06:19 +0200 Subject: loplugin:constmethod in package Change-Id: I44bc86a179164e1d039dd3a5f2c8a23396d870b3 Reviewed-on: https://gerrit.libreoffice.org/77931 Tested-by: Jenkins Reviewed-by: Noel Grandin --- package/source/xstor/owriteablestream.hxx | 4 ++-- package/source/xstor/xstorage.hxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'package/source/xstor') diff --git a/package/source/xstor/owriteablestream.hxx b/package/source/xstor/owriteablestream.hxx index 629d679fdccf..818aec0b7942 100644 --- a/package/source/xstor/owriteablestream.hxx +++ b/package/source/xstor/owriteablestream.hxx @@ -161,10 +161,10 @@ public: void SetToBeCommited() { m_bFlushed = true; } - bool HasCachedEncryptionData() { return m_bHasCachedEncryptionData; } + bool HasCachedEncryptionData() const { return m_bHasCachedEncryptionData; } ::comphelper::SequenceAsHashMap& GetCachedEncryptionData() { return m_aEncryptionData; } - bool IsModified() { return m_bHasDataToFlush || m_bFlushed; } + bool IsModified() const { return m_bHasDataToFlush || m_bFlushed; } bool IsEncrypted(); void SetDecrypted(); diff --git a/package/source/xstor/xstorage.hxx b/package/source/xstor/xstorage.hxx index dabdd9af049e..d4f48e282627 100644 --- a/package/source/xstor/xstorage.hxx +++ b/package/source/xstor/xstorage.hxx @@ -133,7 +133,7 @@ struct OStorage_Impl /// Count of registered modification listeners oslInterlockedCount m_nModifiedListenerCount; - bool HasModifiedListener() + bool HasModifiedListener() const { return m_nModifiedListenerCount > 0 && m_pAntiImpl != nullptr; } @@ -321,7 +321,7 @@ public: void ChildIsDisposed( const css::uno::Reference< css::uno::XInterface >& xChild ); - sal_Int32 GetRefCount_Impl() { return m_refCount; } + sal_Int32 GetRefCount_Impl() const { return m_refCount; } // XInterface -- cgit