diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-03 14:05:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-05-07 08:31:32 +0200 |
commit | 8ffd83de107adfcc7a18bde6e8337c90924b89b7 (patch) | |
tree | 0f3aa6bcf7ea04d873943bff20fce72a3e4e62eb /include | |
parent | 0e2d60f8565c2619807900244b3238ea23c4d962 (diff) |
loplugin:useuniqueptr in SfxModalDialog
Change-Id: I612b92045c3a1cf4a443adf2b35fe7ac6f1aa0bf
Reviewed-on: https://gerrit.libreoffice.org/53868
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/basedlgs.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/sfx2/basedlgs.hxx b/include/sfx2/basedlgs.hxx index e5110415dcf4..58657fc58e8b 100644 --- a/include/sfx2/basedlgs.hxx +++ b/include/sfx2/basedlgs.hxx @@ -47,7 +47,7 @@ class SFX2_DLLPUBLIC SfxModalDialog: public ModalDialog { OUString aExtraData; const SfxItemSet* pInputSet; - SfxItemSet* pOutputSet; + std::unique_ptr<SfxItemSet> pOutputSet; private: SfxModalDialog(SfxModalDialog &) = delete; @@ -62,13 +62,13 @@ protected: OUString& GetExtraData() { return aExtraData; } void CreateOutputItemSet( const SfxItemSet& rInput ); void SetInputSet( const SfxItemSet* pInSet ) { pInputSet = pInSet; } - SfxItemSet* GetOutputSetImpl() { return pOutputSet; } + SfxItemSet* GetOutputSetImpl() { return pOutputSet.get(); } public: virtual ~SfxModalDialog() override; virtual void dispose() override; - const SfxItemSet* GetOutputItemSet() const { return pOutputSet; } + const SfxItemSet* GetOutputItemSet() const { return pOutputSet.get(); } const SfxItemSet* GetInputItemSet() const { return pInputSet; } void StateChanged( StateChangedType nStateChange ) override; }; |