[Libreoffice-commits] core.git: compilerplugins/clang include/svx

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Mon Jan 13 07:15:34 UTC 2020


 compilerplugins/clang/unnecessaryvirtual-dead.results |   14 +-
 compilerplugins/clang/unnecessaryvirtual.py           |    2 
 compilerplugins/clang/unnecessaryvirtual.results      |  124 +++++++-----------
 include/svx/svdtext.hxx                               |    2 
 4 files changed, 62 insertions(+), 80 deletions(-)

New commits:
commit e0bfaf5aff4452e0c98d60e9cee94e063166a6d2
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Mon Jan 13 08:33:28 2020 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Jan 13 08:14:58 2020 +0100

    loplugin:unnecessaryvirtual
    
    Change-Id: Iaba4e315aecf8dfe336e5fd5e95235ff66ab53a8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86652
    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 01e47ee21058..355a5e83fad6 100644
--- a/compilerplugins/clang/unnecessaryvirtual-dead.results
+++ b/compilerplugins/clang/unnecessaryvirtual-dead.results
@@ -1,5 +1,5 @@
-basic/source/comp/codegen.cxx:464
-    void OffSetAccumulator::start(const unsigned char *,)
+basic/source/comp/codegen.cxx:478
+    void (anonymous namespace)::OffSetAccumulator::start(const unsigned char *,)
 include/basegfx/utils/unopolypolygon.hxx:97
     void basegfx::unotools::UnoPolyPolygon::modifying()const
 include/canvas/base/bufferedgraphicdevicebase.hxx:108
@@ -8,12 +8,16 @@ 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> &,)
-sc/source/core/opencl/formulagroupcl.cxx:1059
-    void sc::opencl::DynamicKernelSlidingArgument::GenSlidingWindowFunction(class std::__cxx11::basic_stringstream<char> &,)
-slideshow/source/engine/animationfactory.cxx:441
+sc/source/core/opencl/formulagroupcl.cxx:1062
+    void sc::opencl::(anonymous namespace)::DynamicKernelSlidingArgument::GenSlidingWindowFunction(class std::__cxx11::basic_stringstream<char> &,)
+slideshow/source/engine/animationfactory.cxx:439
     void slideshow::internal::(anonymous namespace)::GenericAnimation::prefetch()
 vcl/inc/salframe.hxx:145
     void SalFrame::SetRepresentedURL(const class rtl::OUString &,)
+vcl/inc/salinst.hxx:202
+    void SalInstance::releaseMainThread()
+vcl/inc/salmenu.hxx:71
+    void SalMenu::SetItemBits(unsigned int,enum MenuItemBits,)
 vcl/inc/salmenu.hxx:81
     void SalMenu::RemoveMenuBarButton(unsigned short,)
 vcl/inc/salobj.hxx:49
diff --git a/compilerplugins/clang/unnecessaryvirtual.py b/compilerplugins/clang/unnecessaryvirtual.py
index 187aafcbb2d8..dda83d8b43fc 100755
--- a/compilerplugins/clang/unnecessaryvirtual.py
+++ b/compilerplugins/clang/unnecessaryvirtual.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
 
 import io
 import re
diff --git a/compilerplugins/clang/unnecessaryvirtual.results b/compilerplugins/clang/unnecessaryvirtual.results
index 568273d4d5b5..a4dcb05f9d81 100644
--- a/compilerplugins/clang/unnecessaryvirtual.results
+++ b/compilerplugins/clang/unnecessaryvirtual.results
@@ -1,40 +1,40 @@
-basic/source/comp/codegen.cxx:464
-    void OffSetAccumulator::start(const unsigned char *,)
-basic/source/comp/codegen.cxx:465
-    void OffSetAccumulator::processOpCode0(enum SbiOpcode,)
-basic/source/comp/codegen.cxx:466
-    void OffSetAccumulator::processOpCode1(enum SbiOpcode,type-parameter-0-0,)
-basic/source/comp/codegen.cxx:467
-    void OffSetAccumulator::processOpCode2(enum SbiOpcode,type-parameter-0-0,type-parameter-0-0,)
-basic/source/comp/codegen.cxx:476
-    _Bool OffSetAccumulator::processParams()
-basic/source/comp/codegen.cxx:487
-    void BufferTransformer::start(const unsigned char *,)
-basic/source/comp/codegen.cxx:488
-    void BufferTransformer::processOpCode0(enum SbiOpcode,)
-basic/source/comp/codegen.cxx:492
-    void BufferTransformer::processOpCode1(enum SbiOpcode,type-parameter-0-0,)
-basic/source/comp/codegen.cxx:517
-    void BufferTransformer::processOpCode2(enum SbiOpcode,type-parameter-0-0,type-parameter-0-0,)
-basic/source/comp/codegen.cxx:526
-    _Bool BufferTransformer::processParams()
+basic/source/comp/codegen.cxx:478
+    void (anonymous namespace)::OffSetAccumulator::start(const unsigned char *,)
+basic/source/comp/codegen.cxx:479
+    void (anonymous namespace)::OffSetAccumulator::processOpCode0(enum SbiOpcode,)
+basic/source/comp/codegen.cxx:480
+    void (anonymous namespace)::OffSetAccumulator::processOpCode1(enum SbiOpcode,type-parameter-0-0,)
+basic/source/comp/codegen.cxx:481
+    void (anonymous namespace)::OffSetAccumulator::processOpCode2(enum SbiOpcode,type-parameter-0-0,type-parameter-0-0,)
+basic/source/comp/codegen.cxx:490
+    _Bool (anonymous namespace)::OffSetAccumulator::processParams()
+basic/source/comp/codegen.cxx:501
+    void (anonymous namespace)::BufferTransformer::start(const unsigned char *,)
+basic/source/comp/codegen.cxx:502
+    void (anonymous namespace)::BufferTransformer::processOpCode0(enum SbiOpcode,)
+basic/source/comp/codegen.cxx:506
+    void (anonymous namespace)::BufferTransformer::processOpCode1(enum SbiOpcode,type-parameter-0-0,)
+basic/source/comp/codegen.cxx:531
+    void (anonymous namespace)::BufferTransformer::processOpCode2(enum SbiOpcode,type-parameter-0-0,type-parameter-0-0,)
+basic/source/comp/codegen.cxx:540
+    _Bool (anonymous namespace)::BufferTransformer::processParams()
 chart2/source/inc/WeakListenerAdapter.hxx:57
     void chart::WeakListenerAdapter::disposing(const struct com::sun::star::lang::EventObject &,)
 extensions/source/dbpilots/unoautopilot.hxx:98
     class cppu::IPropertyArrayHelper * dbp::OUnoAutoPilot::createArrayHelper()const
-extensions/source/propctrlr/commoncontrol.hxx:127
+extensions/source/propctrlr/commoncontrol.hxx:131
     short pcr::CommonBehaviourControl::getControlType()
-extensions/source/propctrlr/commoncontrol.hxx:129
+extensions/source/propctrlr/commoncontrol.hxx:133
     class com::sun::star::uno::Reference<class com::sun::star::inspection::XPropertyControlContext> pcr::CommonBehaviourControl::getControlContext()
-extensions/source/propctrlr/commoncontrol.hxx:131
+extensions/source/propctrlr/commoncontrol.hxx:135
     void pcr::CommonBehaviourControl::setControlContext(const class com::sun::star::uno::Reference<class com::sun::star::inspection::XPropertyControlContext> &,)
-extensions/source/propctrlr/commoncontrol.hxx:133
+extensions/source/propctrlr/commoncontrol.hxx:137
     class com::sun::star::uno::Reference<class com::sun::star::awt::XWindow> pcr::CommonBehaviourControl::getControlWindow()
-extensions/source/propctrlr/commoncontrol.hxx:135
+extensions/source/propctrlr/commoncontrol.hxx:139
     unsigned char pcr::CommonBehaviourControl::isModified()
-extensions/source/propctrlr/commoncontrol.hxx:137
-    void pcr::CommonBehaviourControl::notifyModifiedValue()
 extensions/source/propctrlr/commoncontrol.hxx:141
+    void pcr::CommonBehaviourControl::notifyModifiedValue()
+extensions/source/propctrlr/commoncontrol.hxx:156
     void pcr::CommonBehaviourControl::disposing()
 forms/source/xforms/datatypes.hxx:234
     class cppu::IPropertyArrayHelper * xforms::ODerivedDataType::createArrayHelper()const
@@ -52,10 +52,6 @@ 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
@@ -86,8 +82,8 @@ include/svl/svdde.hxx:244
     _Bool DdeTopic::StartAdviseLoop()
 include/svl/svdde.hxx:300
     void DdeService::~DdeService()
-include/svx/svdpage.hxx:111
-    void SdrObjList::sort(class std::__debug::vector<int, class std::allocator<int> > &,)
+include/svx/svdtext.hxx:60
+    const class SfxItemSet & SdrText::GetItemSet()const
 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
@@ -114,24 +110,18 @@ 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/dialog.hxx:115
-    short Dialog::Execute()
-include/vcl/dialog.hxx:138
-    _Bool Dialog::StartExecuteAsync(struct VclAbstractDialog::AsyncContext &,)
-include/vcl/weld.hxx:100
+include/vcl/weld.hxx:101
     void weld::Widget::set_visible(_Bool,)
-sc/source/core/opencl/formulagroupcl.cxx:1051
-    _Bool sc::opencl::DynamicKernelSlidingArgument::NeedParallelReduction()const
-sc/source/core/opencl/formulagroupcl.cxx:1059
-    void sc::opencl::DynamicKernelSlidingArgument::GenSlidingWindowFunction(class std::__cxx11::basic_stringstream<char> &,)
-sc/source/core/opencl/formulagroupcl.cxx:1338
-    void sc::opencl::ParallelReductionVectorRef::GenSlidingWindowFunction(class std::__cxx11::basic_stringstream<char> &,)
-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/core/opencl/formulagroupcl.cxx:1054
+    _Bool sc::opencl::(anonymous namespace)::DynamicKernelSlidingArgument::NeedParallelReduction()const
+sc/source/core/opencl/formulagroupcl.cxx:1062
+    void sc::opencl::(anonymous namespace)::DynamicKernelSlidingArgument::GenSlidingWindowFunction(class std::__cxx11::basic_stringstream<char> &,)
+sc/source/core/opencl/formulagroupcl.cxx:1345
+    void sc::opencl::(anonymous namespace)::ParallelReductionVectorRef::GenSlidingWindowFunction(class std::__cxx11::basic_stringstream<char> &,)
+sc/source/core/opencl/formulagroupcl.cxx:1347
+    class std::__cxx11::basic_string<char, struct std::char_traits<char>, class std::allocator<char> > sc::opencl::(anonymous namespace)::ParallelReductionVectorRef::GenSlidingWindowDeclRef(_Bool,)const
+sc/source/core/opencl/formulagroupcl.cxx:1361
+    unsigned long sc::opencl::(anonymous namespace)::ParallelReductionVectorRef::Marshal(struct _cl_kernel *,int,int,struct _cl_program *,)
 sc/source/ui/vba/vbacondition.hxx:41
     class rtl::OUString ScVbaCondition::Formula1()
 sc/source/ui/vba/vbacondition.hxx:42
@@ -212,20 +202,22 @@ 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:441
+slideshow/source/engine/animationfactory.cxx:439
     void slideshow::internal::(anonymous namespace)::GenericAnimation::prefetch()
-slideshow/source/engine/animationfactory.cxx:444
+slideshow/source/engine/animationfactory.cxx:442
     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/core/inc/dflyobj.hxx:55
-    void SwFlyDrawObj::SetTextBox(_Bool,)
 vcl/inc/salframe.hxx:145
     void SalFrame::SetRepresentedURL(const class rtl::OUString &,)
 vcl/inc/salframe.hxx:191
     void SalFrame::Flush(const class tools::Rectangle &,)
 vcl/inc/salinst.hxx:92
     _Bool SalInstance::SVMainHook(int *,)
+vcl/inc/salinst.hxx:202
+    void SalInstance::releaseMainThread()
+vcl/inc/salmenu.hxx:71
+    void SalMenu::SetItemBits(unsigned int,enum MenuItemBits,)
 vcl/inc/salmenu.hxx:80
     _Bool SalMenu::AddMenuBarButton(const struct SalMenuButtonItem &,)
 vcl/inc/salmenu.hxx:81
@@ -236,11 +228,11 @@ vcl/inc/salobj.hxx:49
     void SalObject::Enable(_Bool,)
 vcl/inc/salprn.hxx:116
     enum SalPrinterError SalPrinter::GetErrorCode()
-vcl/inc/unx/glyphcache.hxx:54
-    void FreetypeManager::~FreetypeManager()
-vcl/inc/unx/gtk/gtkdata.hxx:136
+vcl/inc/skia/gdiimpl.hxx:210
+    void SkiaSalGraphicsImpl::createSurface()
+vcl/inc/unx/gtk/gtkdata.hxx:121
     int GtkSalDisplay::CaptureMouse(class SalFrame *,)
-vcl/inc/unx/saldata.hxx:51
+vcl/inc/unx/saldata.hxx:50
     void X11SalData::Init()
 vcl/inc/unx/saldisp.hxx:182
     void SalXLib::~SalXLib()
@@ -264,22 +256,8 @@ vcl/inc/unx/saldisp.hxx:406
     void SalX11Display::Yield()
 vcl/inc/unx/salframe.h:207
     void X11SalFrame::updateGraphics(_Bool,)
-vcl/inc/unx/salinst.h:45
+vcl/inc/unx/salinst.h:44
     class SalX11Display * X11SalInstance::CreateDisplay()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
-    void Qt5FilePicker::addCustomControl(short,)
-workdir/../vcl/inc/qt5/Qt5Frame.hxx:160
-    void Qt5Frame::registerDragSource(class Qt5DragSource *,)
-workdir/../vcl/inc/qt5/Qt5Frame.hxx:161
-    void Qt5Frame::deregisterDragSource(const class Qt5DragSource *,)
-workdir/../vcl/inc/qt5/Qt5Frame.hxx:162
-    void Qt5Frame::registerDropTarget(class Qt5DropTarget *,)
-workdir/../vcl/inc/qt5/Qt5Frame.hxx:163
-    void Qt5Frame::deregisterDropTarget(const class Qt5DropTarget *,)
-workdir/../vcl/inc/qt5/Qt5Instance.hxx:82
-    class Qt5FilePicker * Qt5Instance::createPicker(const class com::sun::star::uno::Reference<class com::sun::star::uno::XComponentContext> &,enum QFileDialog::FileMode,)
 writerfilter/source/ooxml/OOXMLFactory.hxx:72
     void writerfilter::ooxml::OOXMLFactory_ns::startAction(class writerfilter::ooxml::OOXMLFastContextHandler *,)
 writerfilter/source/ooxml/OOXMLFactory.hxx:73
diff --git a/include/svx/svdtext.hxx b/include/svx/svdtext.hxx
index dd312bf622a4..f95714aab210 100644
--- a/include/svx/svdtext.hxx
+++ b/include/svx/svdtext.hxx
@@ -57,7 +57,7 @@ public:
 
     // default uses GetObjectItemSet, but may be overridden to
     // return a text-specific ItemSet
-    virtual const SfxItemSet& GetItemSet() const;
+    const SfxItemSet& GetItemSet() const;
 
     // This class does not need an own SdrModel reference - always
     // has the SdrTextObj working with so can use SdrModel::getSdrModelFromSdrObject()


More information about the Libreoffice-commits mailing list