summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-11 12:58:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-12 12:42:22 +0200
commite722564d40143fa029fe10d22a625539c795ee04 (patch)
tree5b4aab88bfa6d35917707d4d8ebe92e78a30c0e5 /svx
parent5dd762ddc1829a86e7b4e23076143bc01d6073ad (diff)
make SvLBoxItem::Clone return a std::unique_ptr
and combine the Create/Clone methods into one Change-Id: Ia982be6b50135b8d368d84070327689be6b3d890 Reviewed-on: https://gerrit.libreoffice.org/52745 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/ctredlin.cxx4
-rw-r--r--svx/source/dialog/fontlb.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/dialog/ctredlin.cxx b/svx/source/dialog/ctredlin.cxx
index 8e2e68baafc4..be1e113c70c3 100644
--- a/svx/source/dialog/ctredlin.cxx
+++ b/svx/source/dialog/ctredlin.cxx
@@ -75,9 +75,9 @@ SvLBoxColorString::~SvLBoxColorString()
{
}
-SvLBoxItem* SvLBoxColorString::Create() const
+std::unique_ptr<SvLBoxItem> SvLBoxColorString::Clone(SvLBoxItem const *) const
{
- return new SvLBoxColorString;
+ return std::unique_ptr<SvLBoxItem>(new SvLBoxColorString);
}
void SvLBoxColorString::Paint(const Point& rPos, SvTreeListBox& rDev, vcl::RenderContext& rRenderContext,
diff --git a/svx/source/dialog/fontlb.cxx b/svx/source/dialog/fontlb.cxx
index 6ba989d88690..a2e4b6dde8c3 100644
--- a/svx/source/dialog/fontlb.cxx
+++ b/svx/source/dialog/fontlb.cxx
@@ -46,9 +46,9 @@ SvLBoxFontString::~SvLBoxFontString()
{
}
-SvLBoxItem* SvLBoxFontString::Create() const
+std::unique_ptr<SvLBoxItem> SvLBoxFontString::Clone(SvLBoxItem const *) const
{
- return new SvLBoxFontString;
+ return std::unique_ptr<SvLBoxItem>(new SvLBoxFontString);
}
void SvLBoxFontString::Paint(const Point& rPos, SvTreeListBox& rDev, vcl::RenderContext& rRenderContext,