diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-11 11:19:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-04-12 13:04:37 +0200 |
commit | 61dd9cafab20af893204deaca81ef26c1e7f7bb0 (patch) | |
tree | 295d290223a484138c2bea2f7e000e274815794a /forms/source/richtext | |
parent | e722564d40143fa029fe10d22a625539c795ee04 (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 'forms/source/richtext')
-rw-r--r-- | forms/source/richtext/richtextunowrapper.cxx | 4 | ||||
-rw-r--r-- | forms/source/richtext/richtextunowrapper.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/forms/source/richtext/richtextunowrapper.cxx b/forms/source/richtext/richtextunowrapper.cxx index a168361d2950..34a6fb48568c 100644 --- a/forms/source/richtext/richtextunowrapper.cxx +++ b/forms/source/richtext/richtextunowrapper.cxx @@ -85,9 +85,9 @@ namespace frm } - SvxEditSource* RichTextEditSource::Clone() const + std::unique_ptr<SvxEditSource> RichTextEditSource::Clone() const { - return new RichTextEditSource( m_rEngine, m_pTextChangeListener ); + return std::unique_ptr<SvxEditSource>(new RichTextEditSource( m_rEngine, m_pTextChangeListener )); } diff --git a/forms/source/richtext/richtextunowrapper.hxx b/forms/source/richtext/richtextunowrapper.hxx index a612cdc74947..add7c5983ed7 100644 --- a/forms/source/richtext/richtextunowrapper.hxx +++ b/forms/source/richtext/richtextunowrapper.hxx @@ -63,7 +63,7 @@ namespace frm RichTextEditSource( EditEngine& _rEngine, IEngineTextChangeListener* _pTextChangeListener ); // SvxEditSource - virtual SvxEditSource* Clone() const override; + virtual std::unique_ptr<SvxEditSource> Clone() const override; virtual SvxTextForwarder* GetTextForwarder() override; virtual void UpdateData() override; |