summaryrefslogtreecommitdiff
path: root/uui/source/iahndl-errorhandler.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-04-16 22:18:45 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-04-16 22:21:04 +0100
commit5d5f447e738f159297b3d7bf10220c3cdfe7e2fa (patch)
tree3468a9712ac78b7db78dc129fa9a47ea5f117372 /uui/source/iahndl-errorhandler.cxx
parenta461467a3edc1452835447ff075fda7420aaf153 (diff)
UnoControls, toolkit, uuoi, xmlsecurity: convert new to ::Create.
Change-Id: I7b8c7ece656589c50fb066e9fa1565fd59f930da
Diffstat (limited to 'uui/source/iahndl-errorhandler.cxx')
-rw-r--r--uui/source/iahndl-errorhandler.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/uui/source/iahndl-errorhandler.cxx b/uui/source/iahndl-errorhandler.cxx
index db209cb8a665..3b12c7ba011c 100644
--- a/uui/source/iahndl-errorhandler.cxx
+++ b/uui/source/iahndl-errorhandler.cxx
@@ -61,13 +61,13 @@ executeErrorDialog(
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;