summaryrefslogtreecommitdiffstats
path: root/sc/source/ui/app
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-14 09:35:26 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-06-14 09:35:26 +0200
commit7f6a17756d62226dfa2af1ded365e3b3ac9f8d21 (patch)
tree596ab4f7e4d572b08e9affaefc4fae4e344b5f15 /sc/source/ui/app
parenttdf#39468 translate german comments in sw (diff)
downloadcore-7f6a17756d62226dfa2af1ded365e3b3ac9f8d21.tar.gz
core-7f6a17756d62226dfa2af1ded365e3b3ac9f8d21.zip
Let CreateItemSet return unique_ptr
...and address resulting loplugin:useuniqueptr Change-Id: Ia79eb8d59ce5092b2d93b656eab687096baedf17
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r--sc/source/ui/app/scmod.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index eedfdb4c08a4..8ca88ba3b886 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -22,7 +22,7 @@
#include <com/sun/star/ui/dialogs/XSLTFilterDialog.hpp>
#include <comphelper/lok.hxx>
#include <comphelper/processfactory.hxx>
-
+#include <o3tl/make_unique.hxx>
#include "scitems.hxx"
#include <sfx2/app.hxx>
#include <editeng/eeitem.hxx>
@@ -1925,12 +1925,12 @@ IMPL_LINK_NOARG(ScModule, SpellTimerHdl, Timer *, void)
/**
* Virtual methods for the OptionsDialog
*/
-SfxItemSet* ScModule::CreateItemSet( sal_uInt16 nId )
+std::unique_ptr<SfxItemSet> ScModule::CreateItemSet( sal_uInt16 nId )
{
- SfxItemSet* pRet = nullptr;
+ std::unique_ptr<SfxItemSet> pRet;
if(SID_SC_EDITOPTIONS == nId)
{
- pRet = new SfxItemSet( GetPool(),
+ pRet = o3tl::make_unique<SfxItemSet>( GetPool(),
// TP_CALC:
SID_SCDOCOPTIONS, SID_SCDOCOPTIONS,
// TP_VIEW: