summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-08-11 13:55:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-13 08:35:16 +0200
commit67649406d7b72f8d6ea4bbe76e775e0052ddefc3 (patch)
tree3cf40f61c1e30a1cba78ba21c7d2e6ac3d274694 /include
parente7cc6b253f5a1fd1205da231f6a14011501ed74e (diff)
loplugin:returnconstant in oox,package
Change-Id: I1dade7ddde6b1e226861d32f24f65be5bb9d9352 Reviewed-on: https://gerrit.libreoffice.org/58880 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/oox/crypto/AgileEngine.hxx2
-rw-r--r--include/oox/ole/axbinarywriter.hxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/oox/crypto/AgileEngine.hxx b/include/oox/crypto/AgileEngine.hxx
index 02f139bcfc11..40f9d7f6e3eb 100644
--- a/include/oox/crypto/AgileEngine.hxx
+++ b/include/oox/crypto/AgileEngine.hxx
@@ -108,7 +108,7 @@ public:
// Decryption
- bool decryptEncryptionKey(OUString const & rPassword);
+ void decryptEncryptionKey(OUString const & rPassword);
bool decryptAndCheckVerifierHash(OUString const & rPassword);
bool generateEncryptionKey(OUString const & rPassword) override;
diff --git a/include/oox/ole/axbinarywriter.hxx b/include/oox/ole/axbinarywriter.hxx
index c8b1bdb29158..000ca96e550e 100644
--- a/include/oox/ole/axbinarywriter.hxx
+++ b/include/oox/ole/axbinarywriter.hxx
@@ -86,7 +86,7 @@ public:
respective flag in the property mask is set. */
template< typename StreamType, typename DataType >
void writeIntProperty( DataType ornValue )
- { if( startNextProperty() ) maOutStrm.writeAligned< StreamType >( ornValue ); }
+ { startNextProperty(); maOutStrm.writeAligned< StreamType >( ornValue ); }
/** Write a boolean property value to the stream, the
respective flag in the property mask is set. */
void writeBoolProperty( bool orbValue );
@@ -106,7 +106,7 @@ public:
private:
bool ensureValid();
- bool startNextProperty( bool bSkip = false );
+ void startNextProperty( bool bSkip = false );
private:
/** Base class for complex properties such as string, point, size, GUID, picture. */