summaryrefslogtreecommitdiff
path: root/starmath/source/accessibility.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-11 11:19:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-12 13:04:37 +0200
commit61dd9cafab20af893204deaca81ef26c1e7f7bb0 (patch)
tree295d290223a484138c2bea2f7e000e274815794a /starmath/source/accessibility.cxx
parente722564d40143fa029fe10d22a625539c795ee04 (diff)
make SvxEditSource::Clone return std::unique_ptr
Change-Id: If0d93024a642cc80a2a84d0c15525af1c0596546 Reviewed-on: https://gerrit.libreoffice.org/52715 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/source/accessibility.cxx')
-rw-r--r--starmath/source/accessibility.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx
index 84eb1b1c0911..9b2bf3a3b97b 100644
--- a/starmath/source/accessibility.cxx
+++ b/starmath/source/accessibility.cxx
@@ -761,9 +761,9 @@ SmEditSource::~SmEditSource()
{
}
-SvxEditSource* SmEditSource::Clone() const
+std::unique_ptr<SvxEditSource> SmEditSource::Clone() const
{
- return new SmEditSource( *this );
+ return std::unique_ptr<SvxEditSource>(new SmEditSource( *this ));
}
SvxTextForwarder* SmEditSource::GetTextForwarder()