diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-02 09:54:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-03 08:16:36 +0200 |
commit | b82d6a3ddc1e70c2f61b8f8fdbfeb9345206472f (patch) | |
tree | 191acd15eeb0f4b9a0fa95403b3c1af40c1dcb3c /include/svtools | |
parent | 904c97bbdf4c76709dbcacb11292668b98a9efd8 (diff) |
return by std::unique_ptr from CreateViewData
Change-Id: I83572646fb2ebe8afe8cff581e574375798e74f7
Reviewed-on: https://gerrit.libreoffice.org/56818
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svtools')
-rw-r--r-- | include/svtools/treelist.hxx | 2 | ||||
-rw-r--r-- | include/svtools/treelistbox.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/svtools/treelist.hxx b/include/svtools/treelist.hxx index c246a5610ad8..0d190ab3a022 100644 --- a/include/svtools/treelist.hxx +++ b/include/svtools/treelist.hxx @@ -317,7 +317,7 @@ public: SvViewDataEntry* GetViewData( SvTreeListEntry* pEntry ); bool HasViewData() const; - virtual SvViewDataEntry* CreateViewData( SvTreeListEntry* pEntry ); + virtual std::unique_ptr<SvViewDataEntry> CreateViewData( SvTreeListEntry* pEntry ); virtual void InitViewData( SvViewDataEntry*, SvTreeListEntry* pEntry ); virtual void ModelHasCleared(); diff --git a/include/svtools/treelistbox.hxx b/include/svtools/treelistbox.hxx index b29908debe4a..5bb92a84a005 100644 --- a/include/svtools/treelistbox.hxx +++ b/include/svtools/treelistbox.hxx @@ -297,7 +297,7 @@ protected: bool EditingCanceled() const; // Return value must be derived from SvViewDataEntry! - virtual SvViewDataEntry* CreateViewData( SvTreeListEntry* ) override; + virtual std::unique_ptr<SvViewDataEntry> CreateViewData( SvTreeListEntry* ) override; // InitViewData is called right after CreateViewData // The Entry is has not yet been added to the View in InitViewData! virtual void InitViewData( SvViewDataEntry*, SvTreeListEntry* pEntry ) override; |