diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-14 09:35:26 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-14 09:35:26 +0200 |
commit | 7f6a17756d62226dfa2af1ded365e3b3ac9f8d21 (patch) | |
tree | 596ab4f7e4d572b08e9affaefc4fae4e344b5f15 /sw/inc/swmodule.hxx | |
parent | 9a3a9a393c74872a5ec5f227b7c30ae3d4bcb1aa (diff) |
Let CreateItemSet return unique_ptr
...and address resulting loplugin:useuniqueptr
Change-Id: Ia79eb8d59ce5092b2d93b656eab687096baedf17
Diffstat (limited to 'sw/inc/swmodule.hxx')
-rw-r--r-- | sw/inc/swmodule.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/swmodule.hxx b/sw/inc/swmodule.hxx index 71cf3c0f499f..3c7839ffa6ce 100644 --- a/sw/inc/swmodule.hxx +++ b/sw/inc/swmodule.hxx @@ -221,7 +221,7 @@ public: SwFieldUpdateFlags GetFieldUpdateFlags() const; // Virtual methods for options dialog. - virtual SfxItemSet* CreateItemSet( sal_uInt16 nId ) override; + virtual std::unique_ptr<SfxItemSet> CreateItemSet( sal_uInt16 nId ) override; virtual void ApplyItemSet( sal_uInt16 nId, const SfxItemSet& rSet ) override; virtual VclPtr<SfxTabPage> CreateTabPage( sal_uInt16 nId, vcl::Window* pParent, const SfxItemSet& rSet ) override; virtual SfxStyleFamilies* CreateStyleFamilies() override; |