diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-03-31 21:06:51 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-10 13:28:52 +0100 |
commit | d46e0d9656670dcd7dcca2f32062606400ff6246 (patch) | |
tree | feec84bb694fe4d107c6aae2d66442ae046be31f /sd/source/ui/view/Outliner.cxx | |
parent | 5d133eb62187ae910772ff5dfeb8f2c3276e8481 (diff) |
second half of non-scriptable, Instance constructor conversion.
Change-Id: I616c8c28255e0d90ae90033a128bd34d7570530c
Diffstat (limited to 'sd/source/ui/view/Outliner.cxx')
-rw-r--r-- | sd/source/ui/view/Outliner.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx index c14c68f1793a..b9d97b12b19b 100644 --- a/sd/source/ui/view/Outliner.cxx +++ b/sd/source/ui/view/Outliner.cxx @@ -1109,10 +1109,10 @@ bool Outliner::ShowWrapArroundDialog (void) // Pop up question box that asks the user whether to wrap around. // The dialog is made modal with respect to the whole application. - ScopedVclPtr<QueryBox> aQuestionBox (new QueryBox( + ScopedVclPtrInstance<QueryBox> aQuestionBox ( NULL, WB_YES_NO | WB_DEF_YES, - SD_RESSTR(nStringId))); + SD_RESSTR(nStringId)); aQuestionBox->SetImage (QueryBox::GetStandardImage()); sal_uInt16 nBoxResult = ShowModalMessageBox(*aQuestionBox.get()); bDoWrapArround = (nBoxResult == RET_YES); @@ -1157,8 +1157,8 @@ void Outliner::PrepareSpellCheck (void) { mbError = true; mbEndOfSearch = true; - ScopedVclPtr<MessageDialog> aErrorBox (new MessageDialog(NULL, - SD_RESSTR(STR_NOLANGUAGE))); + ScopedVclPtrInstance<MessageDialog> aErrorBox (nullptr + SD_RESSTR(STR_NOLANGUAGE)); ShowModalMessageBox (*aErrorBox.get()); } else if (eState != EE_SPELL_OK) |