diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-17 10:13:14 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-17 10:48:27 +0000 |
commit | 49bfc59272f8482ca37abc631d2c3777518fd1d5 (patch) | |
tree | e01cb4a3fa03b6dbd7107e409de83de19813d804 /include/sfx2 | |
parent | 88c755e37cd36ddfe6d0d651540d9f2bd8a029a6 (diff) |
new loplugin: useuniqueptr: sfx2
Change-Id: I544c615105d14fa258fed7f30790d305e987f523
Reviewed-on: https://gerrit.libreoffice.org/33206
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/childwin.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/docinsert.hxx | 3 | ||||
-rw-r--r-- | include/sfx2/mieclip.hxx | 6 | ||||
-rw-r--r-- | include/sfx2/sfxbasecontroller.hxx | 2 |
4 files changed, 7 insertions, 6 deletions
diff --git a/include/sfx2/childwin.hxx b/include/sfx2/childwin.hxx index 3068d001cb52..a8c1b23c142e 100644 --- a/include/sfx2/childwin.hxx +++ b/include/sfx2/childwin.hxx @@ -108,7 +108,7 @@ struct SFX2_DLLPUBLIC SfxChildWinFactory sal_uInt16 nId; // ChildWindow-Id ( SlotId ) SfxChildWinInfo aInfo; // Configuration sal_uInt16 nPos; // Position in UI - SfxChildWinContextArr_Impl *pArr; // Array for Contexts + std::unique_ptr<SfxChildWinContextArr_Impl> pArr; // Array for Contexts SfxChildWinFactory( SfxChildWinCtor pTheCtor, sal_uInt16 nID, sal_uInt16 n ); ~SfxChildWinFactory(); diff --git a/include/sfx2/docinsert.hxx b/include/sfx2/docinsert.hxx index a18b6fdc5ae8..4f47a79bd896 100644 --- a/include/sfx2/docinsert.hxx +++ b/include/sfx2/docinsert.hxx @@ -45,7 +45,8 @@ private: FileDialogFlags const m_nDlgFlags; ErrCode m_nError; - sfx2::FileDialogHelper* m_pFileDlg; + std::unique_ptr<sfx2::FileDialogHelper> + m_pFileDlg; SfxItemSet* m_pItemSet; std::vector<OUString> m_pURLList; diff --git a/include/sfx2/mieclip.hxx b/include/sfx2/mieclip.hxx index e8ce8e9f9d00..365b8ed0a4d5 100644 --- a/include/sfx2/mieclip.hxx +++ b/include/sfx2/mieclip.hxx @@ -31,11 +31,11 @@ class SvData; class SFX2_DLLPUBLIC MSE40HTMLClipFormatObj { - SvStream* pStrm; - OUString sBaseURL; + std::unique_ptr<SvStream> pStrm; + OUString sBaseURL; public: - MSE40HTMLClipFormatObj() : pStrm(nullptr) {} + MSE40HTMLClipFormatObj() {} ~MSE40HTMLClipFormatObj(); SvStream* IsValid( SvStream& ); diff --git a/include/sfx2/sfxbasecontroller.hxx b/include/sfx2/sfxbasecontroller.hxx index af32849a9e9a..a8d979e12511 100644 --- a/include/sfx2/sfxbasecontroller.hxx +++ b/include/sfx2/sfxbasecontroller.hxx @@ -196,7 +196,7 @@ private: DECL_LINK( CheckOutHandler, Button*, void ); - IMPL_SfxBaseController_DataContainer* m_pData ; + std::unique_ptr<IMPL_SfxBaseController_DataContainer> m_pData ; } ; // class SfxBaseController |