summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/source/lib/init.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 9f42a3524707..389225e4fc31 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -7693,8 +7693,9 @@ static void lo_setDocumentPassword(LibreOfficeKit* pThis,
assert(pThis);
assert(pURL);
LibLibreOffice_Impl *const pLib = static_cast<LibLibreOffice_Impl*>(pThis);
- assert(pLib->mInteractionMap.contains(OString(pURL)));
- pLib->mInteractionMap.find(OString(pURL))->second->SetPassword(pPassword);
+ auto it = pLib->mInteractionMap.find(OString(pURL));
+ assert(it != pLib->mInteractionMap.end());
+ it->second->SetPassword(pPassword);
}
static char* lo_getVersionInfo(SAL_UNUSED_PARAMETER LibreOfficeKit* /*pThis*/)