From 938821fb08e427864db6a10642f385bde9803f6c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 22 Jul 2016 14:35:27 +0200 Subject: new loplugin overrideparam verify that parameters on override methods have the same set of default values for their params as their parent/super-methods do. Change-Id: Ibdbc1c6e417fbaa680ea025a6bbf5ba9c2e5bcd2 Reviewed-on: https://gerrit.libreoffice.org/27437 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svtools/source/contnr/fileview.cxx | 2 +- svtools/source/contnr/treelistbox.cxx | 2 +- svtools/source/table/tablecontrol_impl.hxx | 2 +- svtools/source/uno/treecontrolpeer.cxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'svtools/source') diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx index 9bed36ffc720..edbc446b4e41 100644 --- a/svtools/source/contnr/fileview.cxx +++ b/svtools/source/contnr/fileview.cxx @@ -183,7 +183,7 @@ private: protected: virtual bool DoubleClickHdl() override; - virtual OUString GetAccessibleObjectDescription( ::svt::AccessibleBrowseBoxObjType _eType, sal_Int32 _nPos ) const override; + virtual OUString GetAccessibleObjectDescription( ::svt::AccessibleBrowseBoxObjType _eType, sal_Int32 _nPos = -1 ) const override; public: ViewTabListBox_Impl( vcl::Window* pParentWin, SvtFileView_Impl* pParent, FileViewFlags nFlags ); diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx index 0a1e14392937..028f9a23d50f 100644 --- a/svtools/source/contnr/treelistbox.cxx +++ b/svtools/source/contnr/treelistbox.cxx @@ -1786,7 +1786,7 @@ void SvTreeListBox::SetEntryText(SvTreeListEntry* pEntry, const OUString& rStr) SvLBoxString* pItem = static_cast(pEntry->GetFirstItem(SV_ITEM_ID_LBOXSTRING)); DBG_ASSERT(pItem,"SetText:Item not found"); pItem->SetText(rStr); - pItem->InitViewData( this, pEntry, nullptr ); + pItem->InitViewData( this, pEntry ); GetModel()->InvalidateEntry( pEntry ); } diff --git a/svtools/source/table/tablecontrol_impl.hxx b/svtools/source/table/tablecontrol_impl.hxx index cecbe4a0d947..889f188721df 100644 --- a/svtools/source/table/tablecontrol_impl.hxx +++ b/svtools/source/table/tablecontrol_impl.hxx @@ -466,7 +466,7 @@ namespace svt { namespace table virtual void BeginDrag() override; virtual void CreateAnchor() override; virtual void DestroyAnchor() override; - virtual bool SetCursorAtPoint(const Point& rPoint, bool bDontSelectAtCursor) override; + virtual bool SetCursorAtPoint(const Point& rPoint, bool bDontSelectAtCursor = false) override; virtual bool IsSelectionAtPoint( const Point& rPoint ) override; virtual void DeselectAtPoint( const Point& rPoint ) override; virtual void DeselectAll() override; diff --git a/svtools/source/uno/treecontrolpeer.cxx b/svtools/source/uno/treecontrolpeer.cxx index 3c6f3ca77a26..4ba1ab1c047f 100644 --- a/svtools/source/uno/treecontrolpeer.cxx +++ b/svtools/source/uno/treecontrolpeer.cxx @@ -108,7 +108,7 @@ class UnoTreeListItem : public SvLBoxString public: UnoTreeListItem(); virtual ~UnoTreeListItem(); - void InitViewData( SvTreeListBox*,SvTreeListEntry*,SvViewDataItem* ) override; + void InitViewData( SvTreeListBox*,SvTreeListEntry*,SvViewDataItem * = nullptr ) override; void SetImage( const Image& rImage ); const OUString& GetGraphicURL() const { return maGraphicURL;} void SetGraphicURL( const OUString& rGraphicURL ); -- cgit