summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/openuriexternally.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-03-31 21:06:51 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-04-10 13:28:52 +0100
commitd46e0d9656670dcd7dcca2f32062606400ff6246 (patch)
treefeec84bb694fe4d107c6aae2d66442ae046be31f /sfx2/source/appl/openuriexternally.cxx
parent5d133eb62187ae910772ff5dfeb8f2c3276e8481 (diff)
second half of non-scriptable, Instance constructor conversion.
Change-Id: I616c8c28255e0d90ae90033a128bd34d7570530c
Diffstat (limited to 'sfx2/source/appl/openuriexternally.cxx')
-rw-r--r--sfx2/source/appl/openuriexternally.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/appl/openuriexternally.cxx b/sfx2/source/appl/openuriexternally.cxx
index 4dc04f206fdb..beb4deed9ec3 100644
--- a/sfx2/source/appl/openuriexternally.cxx
+++ b/sfx2/source/appl/openuriexternally.cxx
@@ -44,8 +44,8 @@ bool sfx2::openUriExternally(
"unexpected IllegalArgumentException: " + e.Message);
}
SolarMutexGuard g;
- ScopedVclPtr<MessageDialog> eb(new MessageDialog(
- SfxGetpApp()->GetTopWindow(), SfxResId(STR_NO_ABS_URI_REF)));
+ ScopedVclPtrInstance<MessageDialog> eb(
+ SfxGetpApp()->GetTopWindow(), SfxResId(STR_NO_ABS_URI_REF));
eb->set_primary_text(eb->get_primary_text().replaceFirst("$(ARG1)", uri));
eb->Execute();
} catch (css::system::SystemShellExecuteException &) {