summaryrefslogtreecommitdiff
path: root/include/oox/crypto
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-12 11:43:37 +0200
committerNoel Grandin <noel@peralex.com>2016-01-12 11:47:52 +0200
commit8dbfc413b1603c814cecf5306238c6144185671f (patch)
treeb47d0fe0c3499ca23871845a97590e0a7e88115a /include/oox/crypto
parente5bb67f08d4e2095affc5229e638535376ee66b4 (diff)
loplugin:unusedmethods unused return value in include/oox
Change-Id: I22acb6b94774c5944d8276827c53a419f0803f83
Diffstat (limited to 'include/oox/crypto')
-rw-r--r--include/oox/crypto/AgileEngine.hxx8
-rw-r--r--include/oox/crypto/CryptTools.hxx4
-rw-r--r--include/oox/crypto/CryptoEngine.hxx4
-rw-r--r--include/oox/crypto/Standard2007Engine.hxx4
4 files changed, 10 insertions, 10 deletions
diff --git a/include/oox/crypto/AgileEngine.hxx b/include/oox/crypto/AgileEngine.hxx
index dc9c36d8f1db..cf47947f1e97 100644
--- a/include/oox/crypto/AgileEngine.hxx
+++ b/include/oox/crypto/AgileEngine.hxx
@@ -42,9 +42,9 @@ class AgileEngine : public CryptoEngine
{
AgileEncryptionInfo mInfo;
- bool calculateHashFinal(const OUString& rPassword, std::vector<sal_uInt8>& aHashFinal);
+ void calculateHashFinal(const OUString& rPassword, std::vector<sal_uInt8>& aHashFinal);
- bool calculateBlock(
+ void calculateBlock(
const sal_uInt8* rBlock,
sal_uInt32 aBlockSize,
std::vector<sal_uInt8>& rHashFinal,
@@ -59,7 +59,7 @@ public:
AgileEncryptionInfo& getInfo() { return mInfo;}
- virtual bool writeEncryptionInfo(
+ virtual void writeEncryptionInfo(
const OUString& rPassword,
BinaryXOutputStream& rStream) override;
@@ -69,7 +69,7 @@ public:
BinaryXInputStream& aInputStream,
BinaryXOutputStream& aOutputStream) override;
- virtual bool encrypt(
+ virtual void encrypt(
BinaryXInputStream& aInputStream,
BinaryXOutputStream& aOutputStream) override;
};
diff --git a/include/oox/crypto/CryptTools.hxx b/include/oox/crypto/CryptTools.hxx
index 898c47db438d..d93fef62e336 100644
--- a/include/oox/crypto/CryptTools.hxx
+++ b/include/oox/crypto/CryptTools.hxx
@@ -144,8 +144,8 @@ public:
Digest(DigestType eType);
virtual ~Digest();
- bool update(std::vector<sal_uInt8>& input);
- bool finalize(std::vector<sal_uInt8>& digest);
+ void update(std::vector<sal_uInt8>& input);
+ void finalize(std::vector<sal_uInt8>& digest);
sal_uInt32 getLength();
diff --git a/include/oox/crypto/CryptoEngine.hxx b/include/oox/crypto/CryptoEngine.hxx
index ea07a3eff3e2..a6ad858fb5db 100644
--- a/include/oox/crypto/CryptoEngine.hxx
+++ b/include/oox/crypto/CryptoEngine.hxx
@@ -31,7 +31,7 @@ public:
virtual ~CryptoEngine()
{}
- virtual bool writeEncryptionInfo(
+ virtual void writeEncryptionInfo(
const OUString& rPassword,
BinaryXOutputStream& rStream) = 0;
@@ -41,7 +41,7 @@ public:
BinaryXInputStream& aInputStream,
BinaryXOutputStream& aOutputStream) = 0;
- virtual bool encrypt(
+ virtual void encrypt(
BinaryXInputStream& aInputStream,
BinaryXOutputStream& aOutputStream) = 0;
};
diff --git a/include/oox/crypto/Standard2007Engine.hxx b/include/oox/crypto/Standard2007Engine.hxx
index 5e5a6fc36bff..a4d13fb0f2cb 100644
--- a/include/oox/crypto/Standard2007Engine.hxx
+++ b/include/oox/crypto/Standard2007Engine.hxx
@@ -94,7 +94,7 @@ public:
virtual bool generateEncryptionKey(const OUString& rPassword) override;
- virtual bool writeEncryptionInfo(
+ virtual void writeEncryptionInfo(
const OUString& rPassword,
BinaryXOutputStream& rStream) override;
@@ -102,7 +102,7 @@ public:
BinaryXInputStream& aInputStream,
BinaryXOutputStream& aOutputStream) override;
- virtual bool encrypt(
+ virtual void encrypt(
BinaryXInputStream& aInputStream,
BinaryXOutputStream& aOutputStream) override;