[Libreoffice-commits] core.git: compilerplugins/clang fpicker/source include/svx include/vcl sc/source sw/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Wed Nov 6 19:05:04 UTC 2019


 compilerplugins/clang/unnecessaryvirtual-dead.results |    6 --
 compilerplugins/clang/unnecessaryvirtual.results      |   46 +++++++++---------
 fpicker/source/office/fileview.cxx                    |    5 -
 fpicker/source/office/fileview.hxx                    |    2 
 include/svx/svdpage.hxx                               |    2 
 include/vcl/dialog.hxx                                |    4 -
 sc/source/ui/inc/AccessibleContextBase.hxx            |    2 
 sw/source/core/inc/dflyobj.hxx                        |    2 
 8 files changed, 31 insertions(+), 38 deletions(-)

New commits:
commit d81f90dda7100f48995a432b999c1ba76a51846a
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed Nov 6 20:18:33 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed Nov 6 20:03:32 2019 +0100

    loplugin:unnecessaryvirtual
    
    Change-Id: Ibffbd0f5d30ec14cace3638b2bb47c91a583711c
    Reviewed-on: https://gerrit.libreoffice.org/82171
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/compilerplugins/clang/unnecessaryvirtual-dead.results b/compilerplugins/clang/unnecessaryvirtual-dead.results
index 625543ea99d2..01e47ee21058 100644
--- a/compilerplugins/clang/unnecessaryvirtual-dead.results
+++ b/compilerplugins/clang/unnecessaryvirtual-dead.results
@@ -8,12 +8,10 @@ include/canvas/base/graphicdevicebase.hxx:306
     void canvas::GraphicDeviceBase::removePropertyChangeListener(const class rtl::OUString &,const class com::sun::star::uno::Reference<class com::sun::star::beans::XPropertyChangeListener> &,)
 include/canvas/base/graphicdevicebase.hxx:319
     void canvas::GraphicDeviceBase::removeVetoableChangeListener(const class rtl::OUString &,const class com::sun::star::uno::Reference<class com::sun::star::beans::XVetoableChangeListener> &,)
-include/vcl/tabpage.hxx:51
-    void TabPage::DeactivatePage()
 sc/source/core/opencl/formulagroupcl.cxx:1059
     void sc::opencl::DynamicKernelSlidingArgument::GenSlidingWindowFunction(class std::__cxx11::basic_stringstream<char> &,)
-slideshow/source/engine/animationfactory.cxx:443
-    void slideshow::internal::(anonymous namespace)::GenericAnimation::prefetch(const class std::shared_ptr<class slideshow::internal::AnimatableShape> &,const class std::shared_ptr<class slideshow::internal::ShapeAttributeLayer> &,)
+slideshow/source/engine/animationfactory.cxx:441
+    void slideshow::internal::(anonymous namespace)::GenericAnimation::prefetch()
 vcl/inc/salframe.hxx:145
     void SalFrame::SetRepresentedURL(const class rtl::OUString &,)
 vcl/inc/salmenu.hxx:81
diff --git a/compilerplugins/clang/unnecessaryvirtual.results b/compilerplugins/clang/unnecessaryvirtual.results
index 7f4408388235..fba7f09695cb 100644
--- a/compilerplugins/clang/unnecessaryvirtual.results
+++ b/compilerplugins/clang/unnecessaryvirtual.results
@@ -52,6 +52,10 @@ forms/source/xforms/namedcollection.hxx:99
     class com::sun::star::uno::Sequence<class rtl::OUString> NamedCollection::getElementNames()
 forms/source/xforms/namedcollection.hxx:104
     unsigned char NamedCollection::hasByName(const class rtl::OUString &,)
+fpicker/source/office/fileview.cxx:139
+    void ViewTabListBox_Impl::~ViewTabListBox_Impl()
+fpicker/source/office/fileview.hxx:76
+    void SvtFileView::~SvtFileView()
 include/basegfx/utils/unopolypolygon.hxx:97
     void basegfx::unotools::UnoPolyPolygon::modifying()const
 include/comphelper/interaction.hxx:54
@@ -82,9 +86,9 @@ include/svl/svdde.hxx:244
     _Bool DdeTopic::StartAdviseLoop()
 include/svl/svdde.hxx:300
     void DdeService::~DdeService()
-include/svx/svdmrkv.hxx:323
-    _Bool SdrMarkView::IsPointMarkable(const class SdrHdl &,)const
-include/toolkit/controls/geometrycontrolmodel.hxx:184
+include/svx/svdpage.hxx:111
+    void SdrObjList::sort(class std::__debug::vector<int, class std::allocator<int> > &,)
+include/toolkit/controls/geometrycontrolmodel.hxx:183
     void OGeometryControlModel::fillProperties(class com::sun::star::uno::Sequence<struct com::sun::star::beans::Property> &,class com::sun::star::uno::Sequence<struct com::sun::star::beans::Property> &,)const
 include/vbahelper/vbacollectionimpl.hxx:290
     int ScVbaCollectionBase::getCount()
@@ -110,12 +114,12 @@ include/vbahelper/vbareturntypes.hxx:41
     type-parameter-0-0 ooo::vba::DefaultReturnHelper::getValue()
 include/vcl/customweld.hxx:41
     class rtl::OUString weld::CustomWidgetController::GetHelpText()const
-include/vcl/tabpage.hxx:51
-    void TabPage::DeactivatePage()
-include/vcl/weld.hxx:97
+include/vcl/dialog.hxx:115
+    short Dialog::Execute()
+include/vcl/dialog.hxx:138
+    _Bool Dialog::StartExecuteAsync(struct VclAbstractDialog::AsyncContext &,)
+include/vcl/weld.hxx:100
     void weld::Widget::set_visible(_Bool,)
-include/vcl/window.hxx:1157
-    class rtl::OString vcl::Window::GetScreenshotId()const
 sc/source/core/opencl/formulagroupcl.cxx:1051
     _Bool sc::opencl::DynamicKernelSlidingArgument::NeedParallelReduction()const
 sc/source/core/opencl/formulagroupcl.cxx:1059
@@ -126,6 +130,8 @@ sc/source/core/opencl/formulagroupcl.cxx:1518
     class std::__cxx11::basic_string<char, struct std::char_traits<char>, class std::allocator<char> > sc::opencl::ParallelReductionVectorRef::GenSlidingWindowDeclRef(_Bool,)const
 sc/source/core/opencl/formulagroupcl.cxx:1553
     unsigned long sc::opencl::ParallelReductionVectorRef::Marshal(struct _cl_kernel *,int,int,struct _cl_program *,)
+sc/source/ui/inc/AccessibleContextBase.hxx:74
+    _Bool ScAccessibleContextBase::isShowing()
 sc/source/ui/vba/vbacondition.hxx:41
     class rtl::OUString ScVbaCondition::Formula1()
 sc/source/ui/vba/vbacondition.hxx:42
@@ -206,13 +212,15 @@ slideshow/source/engine/activities/activitiesfactory.cxx:538
     void slideshow::internal::(anonymous namespace)::ValuesActivity::endAnimation()
 slideshow/source/engine/activities/activitiesfactory.cxx:583
     void slideshow::internal::(anonymous namespace)::ValuesActivity::performEnd()
-slideshow/source/engine/animationfactory.cxx:443
-    void slideshow::internal::(anonymous namespace)::GenericAnimation::prefetch(const class std::shared_ptr<class slideshow::internal::AnimatableShape> &,const class std::shared_ptr<class slideshow::internal::ShapeAttributeLayer> &,)
-slideshow/source/engine/animationfactory.cxx:447
+slideshow/source/engine/animationfactory.cxx:441
+    void slideshow::internal::(anonymous namespace)::GenericAnimation::prefetch()
+slideshow/source/engine/animationfactory.cxx:444
     void slideshow::internal::(anonymous namespace)::GenericAnimation::start(const class std::shared_ptr<class slideshow::internal::AnimatableShape> &,const class std::shared_ptr<class slideshow::internal::ShapeAttributeLayer> &,)
 sw/inc/flypos.hxx:37
     void SwPosFlyFrame::~SwPosFlyFrame()
-sw/source/ui/dbui/mmaddressblockpage.hxx:241
+sw/source/core/inc/dflyobj.hxx:55
+    void SwFlyDrawObj::SetTextBox(_Bool,)
+sw/source/ui/dbui/mmaddressblockpage.hxx:239
     class weld::TreeView * SwCustomizeAddressBlockDialog::get_drag_source()const
 vcl/inc/salframe.hxx:145
     void SalFrame::SetRepresentedURL(const class rtl::OUString &,)
@@ -232,10 +240,8 @@ vcl/inc/salprn.hxx:116
     enum SalPrinterError SalPrinter::GetErrorCode()
 vcl/inc/unx/glyphcache.hxx:54
     void GlyphCache::~GlyphCache()
-vcl/inc/unx/gtk/gtkdata.hxx:138
+vcl/inc/unx/gtk/gtkdata.hxx:136
     int GtkSalDisplay::CaptureMouse(class SalFrame *,)
-vcl/inc/unx/pixmap.hxx:27
-    void X11Pixmap::~X11Pixmap()
 vcl/inc/unx/saldata.hxx:51
     void X11SalData::Init()
 vcl/inc/unx/saldisp.hxx:182
@@ -256,18 +262,12 @@ vcl/inc/unx/saldisp.hxx:196
     void SalXLib::StopTimer()
 vcl/inc/unx/saldisp.hxx:198
     _Bool SalXLib::CheckTimeout(_Bool,)
-vcl/inc/unx/saldisp.hxx:350
-    int SalDisplay::CaptureMouse(class SalFrame *,)
-vcl/inc/unx/saldisp.hxx:352
-    struct SalDisplay::ScreenData * SalDisplay::initScreen(class SalX11Screen,)const
-vcl/inc/unx/saldisp.hxx:409
+vcl/inc/unx/saldisp.hxx:406
     void SalX11Display::Yield()
-vcl/inc/unx/salframe.h:208
+vcl/inc/unx/salframe.h:207
     void X11SalFrame::updateGraphics(_Bool,)
 vcl/inc/unx/salinst.h:45
     class SalX11Display * X11SalInstance::CreateDisplay()const
-vcl/inc/wizdlg.hxx:390
-    class rtl::OUString vcl::RoadmapWizard::getStateDisplayName(short,)const
 workdir/../vcl/inc/qt5/Qt5FilePicker.hxx:145
     void Qt5FilePicker::disposing(const struct com::sun::star::lang::EventObject &,)
 workdir/../vcl/inc/qt5/Qt5FilePicker.hxx:161
diff --git a/fpicker/source/office/fileview.cxx b/fpicker/source/office/fileview.cxx
index 671e75a6e2d1..ce6564402a46 100644
--- a/fpicker/source/office/fileview.cxx
+++ b/fpicker/source/office/fileview.cxx
@@ -136,7 +136,6 @@ private:
 
 public:
     ViewTabListBox_Impl(std::unique_ptr<weld::TreeView> xTreeView, weld::Window* pTopLevel, SvtFileView_Impl* pParent, FileViewFlags nFlags);
-    virtual ~ViewTabListBox_Impl();
 
     std::unique_ptr<weld::TreeIter> make_iterator() const { return mxTreeView->make_iterator(); }
     void insert(const OUString &rEntry, const OUString& rId, const OUString& rImage, weld::TreeIter& rIter)
@@ -446,10 +445,6 @@ IMPL_LINK_NOARG(ViewTabListBox_Impl, EditingEntryHdl, const weld::TreeIter&, boo
     return mbEditing;
 }
 
-ViewTabListBox_Impl::~ViewTabListBox_Impl()
-{
-}
-
 IMPL_LINK_NOARG(ViewTabListBox_Impl, ResetQuickSearch_Impl, Timer *, void)
 {
     ::osl::MutexGuard aGuard( maMutex );
diff --git a/fpicker/source/office/fileview.hxx b/fpicker/source/office/fileview.hxx
index f994d7a1f4d0..4c2a8f60af58 100644
--- a/fpicker/source/office/fileview.hxx
+++ b/fpicker/source/office/fileview.hxx
@@ -73,7 +73,7 @@ public:
                 std::unique_ptr<weld::TreeView> xTreeView,
                 std::unique_ptr<weld::IconView> xIconView,
                 bool bOnlyFolder, bool bMultiSelection, bool bShowType = true);
-    virtual ~SvtFileView();
+    ~SvtFileView();
 
     void                    SetViewMode( FileViewMode eMode );
 
diff --git a/include/svx/svdpage.hxx b/include/svx/svdpage.hxx
index cdeb74d3714b..cfdea335ee1d 100644
--- a/include/svx/svdpage.hxx
+++ b/include/svx/svdpage.hxx
@@ -108,7 +108,7 @@ public:
     bool           IsObjOrdNumsDirty() const        { return mbObjOrdNumsDirty; }
     virtual void   NbcInsertObject(SdrObject* pObj, size_t nPos=SAL_MAX_SIZE);
     virtual void   InsertObject(SdrObject* pObj, size_t nPos=SAL_MAX_SIZE);
-    virtual void sort( std::vector<sal_Int32>& sortOrder );
+    void           sort( std::vector<sal_Int32>& sortOrder );
 
     void InsertObjectThenMakeNameUnique(SdrObject* pObj);
     void InsertObjectThenMakeNameUnique(SdrObject* pObj, std::unordered_set<rtl::OUString>& rNameSet, size_t nPos=SAL_MAX_SIZE);
diff --git a/include/vcl/dialog.hxx b/include/vcl/dialog.hxx
index 275dd6c76b57..14c32a800291 100644
--- a/include/vcl/dialog.hxx
+++ b/include/vcl/dialog.hxx
@@ -112,7 +112,7 @@ public:
 
     virtual bool    Close() override;
 
-    virtual short   Execute();
+    short           Execute();
     bool            IsInExecute() const { return mbInExecute; }
     // Return true when dialog is synchronously executed (calling ::Execute())
     bool            IsInSyncExecute() const { return mbInSyncExecute; };
@@ -135,7 +135,7 @@ public:
     }
 
     /// Commence execution of a modal dialog, disposes owner on failure
-    virtual bool    StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx);
+    bool            StartExecuteAsync(VclAbstractDialog::AsyncContext &rCtx);
 
     // Dialog::Execute replacement API
 
diff --git a/sc/source/ui/inc/AccessibleContextBase.hxx b/sc/source/ui/inc/AccessibleContextBase.hxx
index 516a0eff3655..7c29cb2274bf 100644
--- a/sc/source/ui/inc/AccessibleContextBase.hxx
+++ b/sc/source/ui/inc/AccessibleContextBase.hxx
@@ -71,7 +71,7 @@ protected:
 public:
 
     /// @throws css::uno::RuntimeException
-    virtual bool isShowing();
+    bool isShowing();
 
     /// @throws css::uno::RuntimeException
     virtual bool isVisible();
diff --git a/sw/source/core/inc/dflyobj.hxx b/sw/source/core/inc/dflyobj.hxx
index b5a0357187f6..8da47dafda1d 100644
--- a/sw/source/core/inc/dflyobj.hxx
+++ b/sw/source/core/inc/dflyobj.hxx
@@ -52,7 +52,7 @@ public:
     virtual SdrInventor GetObjInventor()     const override;
     virtual sal_uInt16  GetObjIdentifier()   const override;
     virtual bool IsTextBox() const override { return mbIsTextBox; }
-    virtual void SetTextBox(bool bIsTextBox) { mbIsTextBox = bIsTextBox; }
+    void SetTextBox(bool bIsTextBox) { mbIsTextBox = bIsTextBox; }
 };
 
 // virtual objects for Flys


More information about the Libreoffice-commits mailing list