diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-25 08:36:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-25 07:31:25 +0000 |
commit | 4fabc2347c75bd09312c6d4b5c7695c26914af52 (patch) | |
tree | 3829249cd0698e443418c028d46352d224c3d57c /sdext | |
parent | 92c2c5f62d6e8962259e03424a40b6ac7ef32e7d (diff) |
loplugin: unnecessary destructor scaddins..sdext
Change-Id: I6ae02ad25863ec7e0f780020dbc69c9a99488c24
Reviewed-on: https://gerrit.libreoffice.org/33511
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/minimizer/configurationaccess.hxx | 1 | ||||
-rw-r--r-- | sdext/source/minimizer/optimizationstats.hxx | 1 | ||||
-rw-r--r-- | sdext/source/pdfimport/inc/pdfparse.hxx | 1 | ||||
-rw-r--r-- | sdext/source/pdfimport/pdfparse/pdfentries.cxx | 1 | ||||
-rw-r--r-- | sdext/source/pdfimport/tree/writertreevisiting.hxx | 6 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterPaneBorderPainter.cxx | 5 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterSlideSorter.cxx | 10 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterTheme.cxx | 20 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterTimer.cxx | 1 |
9 files changed, 0 insertions, 46 deletions
diff --git a/sdext/source/minimizer/configurationaccess.hxx b/sdext/source/minimizer/configurationaccess.hxx index 3a23d22fd199..06d0c5b67d22 100644 --- a/sdext/source/minimizer/configurationaccess.hxx +++ b/sdext/source/minimizer/configurationaccess.hxx @@ -68,7 +68,6 @@ struct OptimizerSettings mbSaveAs( true ), mbOpenNewDocument( true ), mnEstimatedFileSize( 0 ){}; - ~OptimizerSettings(){}; void LoadSettingsFromConfiguration( const css::uno::Reference< css::container::XNameAccess >& rSettings ); void SaveSettingsToConfiguration( const css::uno::Reference< css::container::XNameReplace >& rSettings ); diff --git a/sdext/source/minimizer/optimizationstats.hxx b/sdext/source/minimizer/optimizationstats.hxx index 29824dae06be..6988a1096502 100644 --- a/sdext/source/minimizer/optimizationstats.hxx +++ b/sdext/source/minimizer/optimizationstats.hxx @@ -33,7 +33,6 @@ class OptimizationStats public: OptimizationStats(); - ~OptimizationStats(){}; void SetStatusValue( const PPPOptimizerTokenEnum eStat, const css::uno::Any& rStatValue ); const css::uno::Any* GetStatusValue( const PPPOptimizerTokenEnum eStat ) const; diff --git a/sdext/source/pdfimport/inc/pdfparse.hxx b/sdext/source/pdfimport/inc/pdfparse.hxx index d36828604229..4620cb6a624f 100644 --- a/sdext/source/pdfimport/inc/pdfparse.hxx +++ b/sdext/source/pdfimport/inc/pdfparse.hxx @@ -290,7 +290,6 @@ class PDFReader { public: PDFReader() {} - ~PDFReader() {} static PDFEntry* read( const char* pFileName ); #ifdef _WIN32 diff --git a/sdext/source/pdfimport/pdfparse/pdfentries.cxx b/sdext/source/pdfimport/pdfparse/pdfentries.cxx index 87dda7d06010..956327c1a915 100644 --- a/sdext/source/pdfimport/pdfparse/pdfentries.cxx +++ b/sdext/source/pdfimport/pdfparse/pdfentries.cxx @@ -72,7 +72,6 @@ struct EmitImplData m_nDecryptObject( 0 ), m_nDecryptGeneration( 0 ) {} - ~EmitImplData() {} void decrypt( const sal_uInt8* pInBuffer, sal_uInt32 nLen, sal_uInt8* pOutBuffer, unsigned int nObject, unsigned int nGeneration ) const { diff --git a/sdext/source/pdfimport/tree/writertreevisiting.hxx b/sdext/source/pdfimport/tree/writertreevisiting.hxx index dcd9942924f2..10b6f64ff980 100644 --- a/sdext/source/pdfimport/tree/writertreevisiting.hxx +++ b/sdext/source/pdfimport/tree/writertreevisiting.hxx @@ -37,8 +37,6 @@ namespace pdfi explicit WriterXmlOptimizer(PDFIProcessor& rProcessor) : m_rProcessor(rProcessor) {} - virtual ~WriterXmlOptimizer() override - {} virtual void visit( HyperlinkElement&, const std::list< Element* >::const_iterator& ) override; virtual void visit( TextElement&, const std::list< Element* >::const_iterator& ) override; @@ -66,8 +64,6 @@ namespace pdfi m_rStyleContainer(rStyleContainer), m_rProcessor(rProcessor) {} - virtual ~WriterXmlFinalizer() override - {} virtual void visit( HyperlinkElement&, const std::list< Element* >::const_iterator& ) override; virtual void visit( TextElement&, const std::list< Element* >::const_iterator& ) override; @@ -91,8 +87,6 @@ namespace pdfi explicit WriterXmlEmitter(EmitContext& rEmitContext) : m_rEmitContext(rEmitContext) {} - virtual ~WriterXmlEmitter() override - {} virtual void visit( HyperlinkElement&, const std::list< Element* >::const_iterator& ) override; virtual void visit( TextElement&, const std::list< Element* >::const_iterator& ) override; diff --git a/sdext/source/presenter/PresenterPaneBorderPainter.cxx b/sdext/source/presenter/PresenterPaneBorderPainter.cxx index 70b9ffef1970..7d6f60a7224f 100644 --- a/sdext/source/presenter/PresenterPaneBorderPainter.cxx +++ b/sdext/source/presenter/PresenterPaneBorderPainter.cxx @@ -107,7 +107,6 @@ public: Renderer ( const Reference<XComponentContext>& rxContext, const std::shared_ptr<PresenterTheme>& rpTheme); - ~Renderer(); void SetCanvas (const Reference<rendering::XCanvas>& rxCanvas); void PaintBorder ( @@ -409,10 +408,6 @@ PresenterPaneBorderPainter::Renderer::Renderer ( } } -PresenterPaneBorderPainter::Renderer::~Renderer() -{ -} - void PresenterPaneBorderPainter::Renderer::SetCanvas (const Reference<rendering::XCanvas>& rxCanvas) { if (mxCanvas != rxCanvas) diff --git a/sdext/source/presenter/PresenterSlideSorter.cxx b/sdext/source/presenter/PresenterSlideSorter.cxx index 6d58ac62b861..d493344561d9 100644 --- a/sdext/source/presenter/PresenterSlideSorter.cxx +++ b/sdext/source/presenter/PresenterSlideSorter.cxx @@ -139,7 +139,6 @@ public: const std::shared_ptr<PresenterTheme>& rpTheme, const Reference<awt::XWindow>& rxInvalidateTarget, const std::shared_ptr<PresenterPaintManager>& rpPaintManager); - ~MouseOverManager(); MouseOverManager(const MouseOverManager&) = delete; MouseOverManager& operator=(const MouseOverManager&) = delete; @@ -191,7 +190,6 @@ public: CurrentSlideFrameRenderer ( const css::uno::Reference<css::uno::XComponentContext>& rxContext, const css::uno::Reference<css::rendering::XCanvas>& rxCanvas); - ~CurrentSlideFrameRenderer(); void PaintCurrentSlideFrame ( const awt::Rectangle& rSlideBoundingBox, @@ -1508,10 +1506,6 @@ PresenterSlideSorter::MouseOverManager::MouseOverManager ( } } -PresenterSlideSorter::MouseOverManager::~MouseOverManager() -{ -} - void PresenterSlideSorter::MouseOverManager::Paint ( const sal_Int32 nSlideIndex, const Reference<rendering::XCanvas>& rxCanvas, @@ -1844,10 +1838,6 @@ PresenterSlideSorter::CurrentSlideFrameRenderer::CurrentSlideFrameRenderer ( } } -PresenterSlideSorter::CurrentSlideFrameRenderer::~CurrentSlideFrameRenderer() -{ -} - void PresenterSlideSorter::CurrentSlideFrameRenderer::PaintCurrentSlideFrame ( const awt::Rectangle& rSlideBoundingBox, const Reference<rendering::XCanvas>& rxCanvas, diff --git a/sdext/source/presenter/PresenterTheme.cxx b/sdext/source/presenter/PresenterTheme.cxx index 8f5ed5f61d54..74ff11a83abe 100644 --- a/sdext/source/presenter/PresenterTheme.cxx +++ b/sdext/source/presenter/PresenterTheme.cxx @@ -93,7 +93,6 @@ public: ReadContext ( const Reference<XComponentContext>& rxContext, const Reference<rendering::XCanvas>& rxCanvas); - ~ReadContext(); /** Read data describing a font from the node that can be reached from the given root via the given path. @@ -126,7 +125,6 @@ class PaneStyle { public: PaneStyle(); - ~PaneStyle(); const SharedBitmapDescriptor GetBitmap (const OUString& sBitmapName) const; @@ -167,7 +165,6 @@ class ViewStyle { public: ViewStyle(); - ~ViewStyle(); const SharedBitmapDescriptor GetBitmap (const OUString& sBitmapName) const; @@ -233,7 +230,6 @@ public: const OUString& rsName, const Reference<container::XHierarchicalNameAccess>& rThemeRoot, const OUString& rsNodeName); - ~Theme(); void Read ( PresenterConfigurationAccess& rConfiguration, @@ -598,10 +594,6 @@ PresenterTheme::Theme::Theme ( { } -PresenterTheme::Theme::~Theme() -{ -} - void PresenterTheme::Theme::Read ( PresenterConfigurationAccess& rConfiguration, ReadContext& rReadContext) @@ -712,10 +704,6 @@ ReadContext::ReadContext ( } } -ReadContext::~ReadContext() -{ -} - PresenterTheme::SharedFontDescriptor ReadContext::ReadFont ( const Reference<container::XHierarchicalNameAccess>& rxNode, const OUString& rsFontPath, @@ -951,10 +939,6 @@ PaneStyle::PaneStyle() { } -PaneStyle::~PaneStyle() -{ -} - const SharedBitmapDescriptor PaneStyle::GetBitmap (const OUString& rsBitmapName) const { if (mpBitmaps.get() != nullptr) @@ -1071,10 +1055,6 @@ ViewStyle::ViewStyle() { } -ViewStyle::~ViewStyle() -{ -} - const SharedBitmapDescriptor ViewStyle::GetBitmap (const OUString& rsBitmapName) const { if (rsBitmapName == "Background") diff --git a/sdext/source/presenter/PresenterTimer.cxx b/sdext/source/presenter/PresenterTimer.cxx index e9d3117ba323..093f7548ffd7 100644 --- a/sdext/source/presenter/PresenterTimer.cxx +++ b/sdext/source/presenter/PresenterTimer.cxx @@ -42,7 +42,6 @@ public: const TimeValue& rDueTime, const sal_Int64 nRepeatIntervall, const sal_Int32 nTaskId); - ~TimerTask() {} PresenterTimer::Task maTask; TimeValue maDueTime; |