diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-15 08:04:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-16 11:54:38 +0100 |
commit | 3c93d34caa79c37c41eab1d3212a7ff1cdf53d34 (patch) | |
tree | 1dc4ac28de8e9cd1718c2d694dd5798f861a9a22 /include | |
parent | d0ded163d8e93dc5b10d7a7c9bdab1d0a6a50bac (diff) |
pass RedlinData around by unique_ptr
Change-Id: Ibe709e64b89e5e036e741203a14242f27df8c637
Reviewed-on: https://gerrit.libreoffice.org/66416
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/ctredlin.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/svx/ctredlin.hxx b/include/svx/ctredlin.hxx index 78eaed2ff4f2..e83b9eec7e0c 100644 --- a/include/svx/ctredlin.hxx +++ b/include/svx/ctredlin.hxx @@ -166,14 +166,14 @@ public: The rStr contains the entire redline entry; the columns are delimited by '\t'. */ - SvTreeListEntry* InsertEntry(const OUString &rStr, RedlinData *pUserData, + SvTreeListEntry* InsertEntry(const OUString &rStr, std::unique_ptr<RedlinData> pUserData, SvTreeListEntry* pParent = nullptr, sal_uLong nPos = TREELIST_APPEND); /** Insert a redline entry. The rStr contains the entire redline entry; the columns are delimited by '\t'. */ - SvTreeListEntry* InsertEntry(const OUString &rStr, RedlinData *pUserData, const Color&, + SvTreeListEntry* InsertEntry(const OUString &rStr, std::unique_ptr<RedlinData> pUserData, const Color&, SvTreeListEntry* pParent, sal_uLong nPos = TREELIST_APPEND); /** Insert a redline entry. @@ -181,7 +181,7 @@ public: rRedlineType contains the image for this redline entry (plus for insertion, minus for deletion etc.). rStr contains the rest of the redline entry; the columns are delimited by '\t'. */ - SvTreeListEntry* InsertEntry(const Image &rRedlineType, const OUString &rStr, RedlinData *pUserData, + SvTreeListEntry* InsertEntry(const Image &rRedlineType, const OUString &rStr, std::unique_ptr<RedlinData> pUserData, SvTreeListEntry* pParent, sal_uLong nPos = TREELIST_APPEND); virtual SvTreeListEntry* CreateEntry() const override; |