summaryrefslogtreecommitdiff
path: root/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-20 14:42:40 +0200
committerNoel Grandin <noel@peralex.com>2015-04-20 14:42:40 +0200
commit8e934e79407fba1b0ba564dbaf295a2102d557a4 (patch)
treef85e767823500e93e75c23d4a6977eb817782d13 /sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
parent7819d49facfac7e241840ff9ea6932447e92a6f9 (diff)
sc: convert new to ::Create
Change-Id: I38bf7fe0dafe2cfd2535055f764293070de9c42c
Diffstat (limited to 'sc/source/ui/sidebar/AlignmentPropertyPanel.cxx')
-rw-r--r--sc/source/ui/sidebar/AlignmentPropertyPanel.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
index c9d7d4af0a01..d1da58a3cd47 100644
--- a/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
+++ b/sc/source/ui/sidebar/AlignmentPropertyPanel.cxx
@@ -238,10 +238,8 @@ VclPtr<vcl::Window> AlignmentPropertyPanel::Create (
if (pBindings == NULL)
throw lang::IllegalArgumentException("no SfxBindings given to AlignmentPropertyPanel::Create", NULL, 2);
- return VclPtr<vcl::Window>(
- new AlignmentPropertyPanel(
- pParent, rxFrame, pBindings),
- SAL_NO_ACQUIRE);
+ return VclPtr<AlignmentPropertyPanel>::Create(
+ pParent, rxFrame, pBindings);
}
void AlignmentPropertyPanel::DataChanged(