summaryrefslogtreecommitdiffstats
path: root/sc/source/core/data/tabprotection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/data/tabprotection.cxx')
-rw-r--r--sc/source/core/data/tabprotection.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sc/source/core/data/tabprotection.cxx b/sc/source/core/data/tabprotection.cxx
index 3deb5504fa24..312165a0739e 100644
--- a/sc/source/core/data/tabprotection.cxx
+++ b/sc/source/core/data/tabprotection.cxx
@@ -401,10 +401,7 @@ bool ScTableProtectionImpl::verifyPassword(const OUString& aPassText) const
// Not yet generated or tracked with meHash1 or meHash2, but can be read
// from OOXML.
- if (maPasswordHash.verifyPassword( aPassText))
- return true;
-
- return false;
+ return maPasswordHash.verifyPassword( aPassText);
}
bool ScTableProtectionImpl::isOptionEnabled(SCSIZE nOptId) const