diff options
author | Philippe Jung <phil.jung@free.fr> | 2015-05-26 16:26:35 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-05-28 08:44:31 +0000 |
commit | 1379e2feaad6344999358bbfb271edbaea66ce2a (patch) | |
tree | f2d15c298b21e8aa83ec4bbc025ca0561896906e /sw/source/core/crsr/viscrs.cxx | |
parent | f9e0e3a4eb8a23bfb9fb66055511c53d120e6579 (diff) |
Rewrite all calls like Dialog(params).Execute()
Replace all calls looking like
ADialog(some params).Execute()
by
ScopedVclPtrInstance<ADialog>::Create(some parms)->Execute()
Change-Id: I0b6f0a9ea5ef0a749ffa30ce131e9dc989604639
Reviewed-on: https://gerrit.libreoffice.org/15915
Tested-by: Jenkins <ci@libreoffice.org>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sw/source/core/crsr/viscrs.cxx')
-rw-r--r-- | sw/source/core/crsr/viscrs.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/crsr/viscrs.cxx b/sw/source/core/crsr/viscrs.cxx index 1366935e485c..38e6ef867ef8 100644 --- a/sw/source/core/crsr/viscrs.cxx +++ b/sw/source/core/crsr/viscrs.cxx @@ -622,8 +622,8 @@ short SwShellCrsr::MaxReplaceArived() } vActionCounts.push_back(nActCnt); } - nRet = MessageDialog(pDlg, "AskSearchDialog", - "modules/swriter/ui/asksearchdialog.ui").Execute(); + nRet = ScopedVclPtrInstance<MessageDialog>::Create(pDlg, "AskSearchDialog", + "modules/swriter/ui/asksearchdialog.ui")->Execute(); auto pActionCount = vActionCounts.begin(); for(SwViewShell& rShell : const_cast< SwCrsrShell* >( GetShell() )->GetRingContainer()) { |