diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-21 20:06:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-22 09:34:43 +0200 |
commit | 7a769391772b1184d801a123fb226017e8d65848 (patch) | |
tree | 41e5a167d37a549d54bf4ad0b12b48b9c3221ac9 /package/inc | |
parent | d5b07dc9c0185e59077e54c91792476dcbba8d44 (diff) |
loplugin:constmethod in package
Change-Id: I44bc86a179164e1d039dd3a5f2c8a23396d870b3
Reviewed-on: https://gerrit.libreoffice.org/77931
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package/inc')
-rw-r--r-- | package/inc/CRC32.hxx | 2 | ||||
-rw-r--r-- | package/inc/ZipOutputEntry.hxx | 2 | ||||
-rw-r--r-- | package/inc/ZipOutputStream.hxx | 4 | ||||
-rw-r--r-- | package/inc/ZipPackageStream.hxx | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/package/inc/CRC32.hxx b/package/inc/CRC32.hxx index e19ed60d99c3..0791875217cb 100644 --- a/package/inc/CRC32.hxx +++ b/package/inc/CRC32.hxx @@ -39,7 +39,7 @@ public: /// @throws css::uno::RuntimeException void update(const css::uno::Sequence< sal_Int8 > &b); /// @throws css::uno::RuntimeException - sal_Int32 getValue(); + sal_Int32 getValue() const; /// @throws css::uno::RuntimeException void reset(); }; diff --git a/package/inc/ZipOutputEntry.hxx b/package/inc/ZipOutputEntry.hxx index 7234d890f4c2..3bace59698b5 100644 --- a/package/inc/ZipOutputEntry.hxx +++ b/package/inc/ZipOutputEntry.hxx @@ -57,7 +57,7 @@ public: ZipEntry* getZipEntry() { return m_pCurrentEntry; } ZipPackageStream* getZipPackageStream() { return m_pCurrentStream; } - bool isEncrypt() { return m_bEncryptCurrentEntry; } + bool isEncrypt() const { return m_bEncryptCurrentEntry; } void closeEntry(); diff --git a/package/inc/ZipOutputStream.hxx b/package/inc/ZipOutputStream.hxx index b527abde1443..aeb7ab1f86e8 100644 --- a/package/inc/ZipOutputStream.hxx +++ b/package/inc/ZipOutputStream.hxx @@ -63,7 +63,7 @@ public: /// @throws css::io::IOException /// @throws css::uno::RuntimeException void finish(); - const css::uno::Reference< css::io::XOutputStream >& getStream(); + const css::uno::Reference< css::io::XOutputStream >& getStream() const; static sal_uInt32 getCurrentDosTime(); static void setEntry( ZipEntry *pEntry ); @@ -87,7 +87,7 @@ public: void reduceScheduledThreadTasksToGivenNumberOrLess( sal_Int32 nThreadTasks); - const std::shared_ptr<comphelper::ThreadTaskTag>& getThreadTaskTag() { return mpThreadTaskTag; } + const std::shared_ptr<comphelper::ThreadTaskTag>& getThreadTaskTag() const { return mpThreadTaskTag; } }; #endif diff --git a/package/inc/ZipPackageStream.hxx b/package/inc/ZipPackageStream.hxx index 7909c8818107..ffd791c8aca0 100644 --- a/package/inc/ZipPackageStream.hxx +++ b/package/inc/ZipPackageStream.hxx @@ -87,7 +87,7 @@ public: css::uno::Sequence<sal_Int8> GetEncryptionKey(Bugs bugs = Bugs::None); - sal_Int32 GetStartKeyGenID(); + sal_Int32 GetStartKeyGenID() const; sal_Int32 GetEncryptionAlgorithm() const; sal_Int32 GetBlockSize() const; |