diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-18 16:11:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-20 08:50:25 +0200 |
commit | 8f8a1e301c7f5b9e924e192ab68b7baa23dcc47a (patch) | |
tree | 6c8af03261c4399a2ee3796e2f1e4987ddd71c9b /include | |
parent | 15dce20e8b97dbd0179f01910ca4d0027e80ff4e (diff) |
use std::unique_ptr in EscherSolverContainer
Change-Id: I46d10aec5b69d120dfca8fea076013664cbb3278
Reviewed-on: https://gerrit.libreoffice.org/43527
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/filter/msfilter/escherex.hxx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/include/filter/msfilter/escherex.hxx b/include/filter/msfilter/escherex.hxx index 3c125649e9d1..28055688f974 100644 --- a/include/filter/msfilter/escherex.hxx +++ b/include/filter/msfilter/escherex.hxx @@ -606,6 +606,7 @@ public: EscherGraphicProvider( EscherGraphicProviderFlags nFlags = EscherGraphicProviderFlags::NONE ); virtual ~EscherGraphicProvider(); + EscherGraphicProvider& operator=( EscherGraphicProvider const & ) = delete; // MSVC2015 workaround EscherGraphicProvider( EscherGraphicProvider const & ) = delete; // MSVC2015 workaround }; @@ -614,8 +615,8 @@ struct EscherShapeListEntry; class MSFILTER_DLLPUBLIC EscherSolverContainer { - ::std::vector< EscherShapeListEntry* > maShapeList; - ::std::vector< EscherConnectorListEntry* > maConnectorList; + ::std::vector< std::unique_ptr<EscherShapeListEntry> > maShapeList; + ::std::vector< std::unique_ptr<EscherConnectorListEntry> > maConnectorList; public: @@ -638,8 +639,11 @@ public: void WriteSolver( SvStream& ); - EscherSolverContainer(){}; + EscherSolverContainer(); ~EscherSolverContainer(); + + EscherSolverContainer& operator=( EscherSolverContainer const & ) = delete; // MSVC2015 workaround + EscherSolverContainer( EscherSolverContainer const & ) = delete; // MSVC2015 workaround }; @@ -856,7 +860,7 @@ class MSFILTER_DLLPUBLIC EscherPersistTable { public: - ::std::vector< EscherPersistEntry* > maPersistTable; + ::std::vector< std::unique_ptr<EscherPersistEntry> > maPersistTable; bool PtIsID( sal_uInt32 nID ); void PtInsert( sal_uInt32 nID, sal_uInt32 nOfs ); @@ -867,6 +871,9 @@ public: EscherPersistTable(); virtual ~EscherPersistTable(); + + EscherPersistTable& operator=( EscherPersistTable const & ) = delete; // MSVC2015 workaround + EscherPersistTable( EscherPersistTable const & ) = delete; // MSVC2015 workaround }; |