summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/drviews2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/view/drviews2.cxx')
-rw-r--r--sd/source/ui/view/drviews2.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx
index f780db94fcd6..3ea2b88a32de 100644
--- a/sd/source/ui/view/drviews2.cxx
+++ b/sd/source/ui/view/drviews2.cxx
@@ -1422,10 +1422,10 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq)
|| aLayerName.isEmpty() )
{
// name already exists
- ScopedVclPtr<WarningBox> aWarningBox (new WarningBox(
+ ScopedVclPtrInstance<WarningBox> aWarningBox (
GetParentWindow(),
WinBits( WB_OK ),
- SD_RESSTR(STR_WARN_NAME_DUPLICATE)));
+ SD_RESSTR(STR_WARN_NAME_DUPLICATE));
aWarningBox->Execute();
}
else
@@ -1591,10 +1591,10 @@ void DrawViewShell::FuTemporary(SfxRequest& rReq)
aLayerName != aOldLayerName) || aLayerName.isEmpty() )
{
// name already exists
- ScopedVclPtr<WarningBox> aWarningBox (new WarningBox(
+ ScopedVclPtrInstance<WarningBox> aWarningBox (
GetParentWindow(),
WinBits( WB_OK ),
- SD_RESSTR(STR_WARN_NAME_DUPLICATE)));
+ SD_RESSTR(STR_WARN_NAME_DUPLICATE));
aWarningBox->Execute();
}
else