diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-03-10 14:41:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-03-11 09:06:06 +0100 |
commit | 7002caa97e10d29353d3490b4fbb782d436575b3 (patch) | |
tree | 98c254c9f94272e145417034f5cdc85b942edf74 /svx | |
parent | a370e7ff7e8225b8343678401eca5a1721b2b9bb (diff) |
new loplugin:trivialdestructor
look for potentially trivial destructors that can then be elided
Change-Id: I435c251bd4291b5864c20d68f88676faac7c43fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131318
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/dlgctl3d.cxx | 4 | ||||
-rw-r--r-- | svx/source/engine3d/objfac3d.cxx | 4 | ||||
-rw-r--r-- | svx/source/form/fmobjfac.cxx | 4 | ||||
-rw-r--r-- | svx/source/gallery2/codec.cxx | 4 | ||||
-rw-r--r-- | svx/source/gallery2/codec.hxx | 1 | ||||
-rw-r--r-- | svx/source/svdraw/svdview.cxx | 5 | ||||
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 4 |
7 files changed, 0 insertions, 26 deletions
diff --git a/svx/source/dialog/dlgctl3d.cxx b/svx/source/dialog/dlgctl3d.cxx index 1231e1d4eedf..792485a06048 100644 --- a/svx/source/dialog/dlgctl3d.cxx +++ b/svx/source/dialog/dlgctl3d.cxx @@ -964,10 +964,6 @@ void SvxLightCtl3D::Init() CheckSelection(); } -SvxLightCtl3D::~SvxLightCtl3D() -{ -} - void SvxLightCtl3D::CheckSelection() { const bool bSelectionValid(mrLightControl.IsSelectionValid() || mrLightControl.IsGeometrySelected()); diff --git a/svx/source/engine3d/objfac3d.cxx b/svx/source/engine3d/objfac3d.cxx index 160406c17405..4153ffab55fd 100644 --- a/svx/source/engine3d/objfac3d.cxx +++ b/svx/source/engine3d/objfac3d.cxx @@ -38,10 +38,6 @@ E3dObjFactory::E3dObjFactory() } } -E3dObjFactory::~E3dObjFactory() -{ -} - // Generate chart internal objects IMPL_STATIC_LINK( E3dObjFactory, MakeObject, SdrObjCreatorParams, aParams, SdrObject* ) diff --git a/svx/source/form/fmobjfac.cxx b/svx/source/form/fmobjfac.cxx index 6ef433414af0..7e6ffacc6229 100644 --- a/svx/source/form/fmobjfac.cxx +++ b/svx/source/form/fmobjfac.cxx @@ -82,10 +82,6 @@ FmFormObjFactory::FmFormObjFactory() bInit = true; } -FmFormObjFactory::~FmFormObjFactory() -{ -} - // create css::form::Form objects namespace { diff --git a/svx/source/gallery2/codec.cxx b/svx/source/gallery2/codec.cxx index 5adef9b37841..062c60dbecc6 100644 --- a/svx/source/gallery2/codec.cxx +++ b/svx/source/gallery2/codec.cxx @@ -29,10 +29,6 @@ GalleryCodec::GalleryCodec( SvStream& rIOStm ) : { } -GalleryCodec::~GalleryCodec() -{ -} - bool GalleryCodec::IsCoded( SvStream& rStm, sal_uInt32& rVersion ) { const sal_uInt64 nPos = rStm.Tell(); diff --git a/svx/source/gallery2/codec.hxx b/svx/source/gallery2/codec.hxx index 8d8196d70d0e..726b80157b5d 100644 --- a/svx/source/gallery2/codec.hxx +++ b/svx/source/gallery2/codec.hxx @@ -30,7 +30,6 @@ private: public: explicit GalleryCodec(SvStream& rIOStm); - ~GalleryCodec(); void Write(SvStream& rStmToWrite); void Read(SvStream& rStmToRead); diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx index d66094def531..6179451b9596 100644 --- a/svx/source/svdraw/svdview.cxx +++ b/svx/source/svdraw/svdview.cxx @@ -76,11 +76,6 @@ SdrViewEvent::SdrViewEvent() { } -SdrViewEvent::~SdrViewEvent() -{ -} - - // helper class for all D&D overlays void SdrDropMarkerOverlay::ImplCreateOverlays( diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index e7f168fc9340..d9971a2e5f21 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -2123,10 +2123,6 @@ ColorStatus::ColorStatus() : { } -ColorStatus::~ColorStatus() -{ -} - void ColorStatus::statusChanged( const css::frame::FeatureStateEvent& rEvent ) { Color aColor( COL_TRANSPARENT ); |