summaryrefslogtreecommitdiff
path: root/uui/source/iahndl-errorhandler.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'uui/source/iahndl-errorhandler.cxx')
-rw-r--r--uui/source/iahndl-errorhandler.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/uui/source/iahndl-errorhandler.cxx b/uui/source/iahndl-errorhandler.cxx
index 68b09382baed..3b12c7ba011c 100644
--- a/uui/source/iahndl-errorhandler.cxx
+++ b/uui/source/iahndl-errorhandler.cxx
@@ -55,19 +55,19 @@ executeErrorDialog(
//TODO! must be internationalized
aText.append(rMessage);
- boost::scoped_ptr< MessBox > xBox;
+ VclPtr< MessBox > xBox;
try
{
switch (eClassification)
{
case task::InteractionClassification_ERROR:
- xBox.reset(new ErrorBox(pParent,
+ xBox.reset(VclPtr<ErrorBox>::Create(pParent,
nButtonMask,
aText.makeStringAndClear()));
break;
case task::InteractionClassification_WARNING:
- xBox.reset(new WarningBox(pParent,
+ xBox.reset(VclPtr<WarningBox>::Create(pParent,
nButtonMask,
aText.makeStringAndClear()));
break;
@@ -76,16 +76,16 @@ executeErrorDialog(
# define WB_DEF_BUTTONS (WB_DEF_OK | WB_DEF_CANCEL | WB_DEF_RETRY)
//(want to ignore any default button settings)...
if ((nButtonMask & WB_DEF_BUTTONS) == WB_DEF_OK)
- xBox.reset(new InfoBox(pParent,
+ xBox.reset(VclPtr<InfoBox>::Create(pParent,
aText.makeStringAndClear()));
else
- xBox.reset(new ErrorBox(pParent,
+ xBox.reset(VclPtr<ErrorBox>::Create(pParent,
nButtonMask,
aText.makeStringAndClear()));
break;
case task::InteractionClassification_QUERY:
- xBox.reset(new QueryBox(pParent,
+ xBox.reset(VclPtr<QueryBox>::Create(pParent,
nButtonMask,
aText.makeStringAndClear()));
break;