summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2018-02-23 20:31:18 +0100
committerEike Rathke <erack@redhat.com>2018-02-24 11:47:09 +0100
commitf1fb9932492249ec3f1546e79be8b3be7fb195f3 (patch)
treeadc1f85a3018de0fd721ce8d0fd24765963c197a
parent8f2d6e80608b7f8cc931e6d7e7280c043fc92ae8 (diff)
Add ScOoxPasswordHash::clear(), tdf#104250 prep
Change-Id: Iaf3bb2ad74fe99435c74e9ea018168ff7e92a977
-rw-r--r--sc/inc/tabprotection.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/inc/tabprotection.hxx b/sc/inc/tabprotection.hxx
index 0b3a3ed62105..6a776807a191 100644
--- a/sc/inc/tabprotection.hxx
+++ b/sc/inc/tabprotection.hxx
@@ -49,6 +49,12 @@ struct ScOoxPasswordHash
ScOoxPasswordHash() : mnSpinCount(0) {}
bool hasPassword() const { return !maHashValue.isEmpty(); }
+ void clear()
+ {
+ // Keep algorithm and spin count.
+ maHashValue.clear();
+ maSaltValue.clear();
+ }
};
namespace ScPassHashHelper