summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/docsh5.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/docshell/docsh5.cxx')
-rw-r--r--sc/source/ui/docshell/docsh5.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/docshell/docsh5.cxx b/sc/source/ui/docshell/docsh5.cxx
index 20aa6e4f1435..647b27147dda 100644
--- a/sc/source/ui/docshell/docsh5.cxx
+++ b/sc/source/ui/docshell/docsh5.cxx
@@ -81,7 +81,7 @@ void ScDocShell::ErrorMessage( sal_uInt16 nGlobStrId )
}
}
- VclPtr<InfoBox> aBox(new InfoBox( pParent, ScGlobal::GetRscString( nGlobStrId ) ) );
+ ScopedVclPtr<InfoBox> aBox(new InfoBox( pParent, ScGlobal::GetRscString( nGlobStrId ) ) );
aBox->Execute();
if (bFocus)
pParent->GrabFocus();
@@ -487,7 +487,7 @@ void ScDocShell::DoConsolidate( const ScConsolidateParam& rParam, bool bRecord )
if (bErr)
{
- VclPtr<InfoBox> aBox(new InfoBox( GetActiveDialogParent(),
+ ScopedVclPtr<InfoBox> aBox(new InfoBox( GetActiveDialogParent(),
ScGlobal::GetRscString( STR_CONSOLIDATE_ERR1 ) ) );
aBox->Execute();
return;
@@ -697,14 +697,14 @@ void ScDocShell::UseScenario( SCTAB nTab, const OUString& rName, bool bRecord )
}
else
{
- VclPtr<InfoBox> aBox(new InfoBox( GetActiveDialogParent(),
+ ScopedVclPtr<InfoBox> aBox(new InfoBox( GetActiveDialogParent(),
ScGlobal::GetRscString( STR_PROTECTIONERR ) ) );
aBox->Execute();
}
}
else
{
- VclPtr<InfoBox> aBox(new InfoBox(GetActiveDialogParent(),
+ ScopedVclPtr<InfoBox> aBox(new InfoBox(GetActiveDialogParent(),
ScGlobal::GetRscString( STR_SCENARIO_NOTFOUND ) ) );
aBox->Execute();
}