summaryrefslogtreecommitdiff
path: root/include/editeng/unoforou.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-09 14:00:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-16 09:03:47 +0200
commit19b4520fbfa8080821021586d8fe3428a2a893af (patch)
tree32cf8ee829d62f20b19bd124c7a9c5fe39231f3e /include/editeng/unoforou.hxx
parent6da400912e8c69ae86650e799767da54ee422392 (diff)
loplugin:useuniqueptr in SvxOutlinerForwarder
Change-Id: Ie861132b43b0a01ee8b4f3bc201bbf12f8af9f36 Reviewed-on: https://gerrit.libreoffice.org/54181 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/editeng/unoforou.hxx')
-rw-r--r--include/editeng/unoforou.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/editeng/unoforou.hxx b/include/editeng/unoforou.hxx
index b04fdcdb59f5..0eb490b466fd 100644
--- a/include/editeng/unoforou.hxx
+++ b/include/editeng/unoforou.hxx
@@ -22,8 +22,8 @@
#include <editeng/unoedsrc.hxx>
#include <editeng/editengdllapi.h>
-
#include <editeng/editdata.hxx>
+#include <memory>
class Outliner;
@@ -37,14 +37,14 @@ private:
/** this pointer may be null or point to an item set for the attribs of
the selection maAttribsSelection */
- mutable SfxItemSet* mpAttribsCache;
+ mutable std::unique_ptr<SfxItemSet> mpAttribsCache;
/** if we have a cached attribute item set, this is the selection of it */
mutable ESelection maAttribCacheSelection;
/** this pointer may be null or point to an item set for the paragraph
mnParaAttribsCache */
- mutable SfxItemSet* mpParaAttribsCache;
+ mutable std::unique_ptr<SfxItemSet> mpParaAttribsCache;
/** if we have a cached para attribute item set, this is the paragraph of it */
mutable sal_Int32 mnParaAttribsCache;