From 7002caa97e10d29353d3490b4fbb782d436575b3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 10 Mar 2022 14:41:47 +0200 Subject: 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 --- svx/source/dialog/dlgctl3d.cxx | 4 ---- svx/source/engine3d/objfac3d.cxx | 4 ---- svx/source/form/fmobjfac.cxx | 4 ---- svx/source/gallery2/codec.cxx | 4 ---- svx/source/gallery2/codec.hxx | 1 - svx/source/svdraw/svdview.cxx | 5 ----- svx/source/tbxctrls/tbcontrl.cxx | 4 ---- 7 files changed, 26 deletions(-) (limited to 'svx') 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 ); -- cgit