summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/securitypage.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-05-28 21:35:43 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-05-29 12:16:28 +0000
commitba81e5c6bd420b41a84ade6ccd774011a8089f7f (patch)
tree554d0904466549cf2ba630e361e457fdcec22c98 /sfx2/source/dialog/securitypage.cxx
parent5fe011ae025d7d354ca0647189524843a444ffba (diff)
tdf#91702 - fix stack-based MessBox allocation.
Change-Id: I62dd164e281911d9db3de453789a5badc7cd5fd7 Reviewed-on: https://gerrit.libreoffice.org/15954 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sfx2/source/dialog/securitypage.cxx')
-rw-r--r--sfx2/source/dialog/securitypage.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/dialog/securitypage.cxx b/sfx2/source/dialog/securitypage.cxx
index e5de1d3c99c5..2af8ef50e1ff 100644
--- a/sfx2/source/dialog/securitypage.cxx
+++ b/sfx2/source/dialog/securitypage.cxx
@@ -126,7 +126,7 @@ static bool lcl_IsPasswordCorrect( const OUString &rPassword )
if (SvPasswordHelper::CompareHashPassword( aPasswordHash, rPassword ))
bRes = true; // password was correct
else
- InfoBox( NULL, SFX2_RESSTR(RID_SVXSTR_INCORRECT_PASSWORD) ).Execute();
+ ScopedVclPtr<InfoBox>::Create( nullptr, SFX2_RESSTR(RID_SVXSTR_INCORRECT_PASSWORD) )->Execute();
return bRes;
}