loplugin:unnecessaryvirtual

Change-Id: Ie010deb5cdf9da20f2ca60d79feabf1c0de93c57
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177669
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin 2024-12-02 12:08:32 +02:00
parent aa443205e6
commit 18c2199537
9 changed files with 7 additions and 18 deletions

View file

@ -179,7 +179,7 @@ public:
virtual bool hasTextRelief() const;
virtual bool hasShadow() const;
virtual bool hasTextDecoration() const;
virtual bool hasOutline() const;
bool hasOutline() const;
/// compare operator
virtual bool operator==(const BasePrimitive2D& rPrimitive) const override;

View file

@ -265,8 +265,8 @@ public:
virtual void FillUserData();
virtual bool IsReadOnly() const;
// Whether the user has canceled the dialog. Allows to restore settings, etc.
virtual bool IsCancelMode() { return mbCancel; }
virtual void SetCancelMode(bool bCancel) { mbCancel = bCancel; }
bool IsCancelMode() { return mbCancel; }
void SetCancelMode(bool bCancel) { mbCancel = bCancel; }
virtual void PageCreated (const SfxAllItemSet& aSet);
virtual void ChangesApplied();
static const SfxPoolItem* GetItem( const SfxItemSet& rSet, sal_uInt16 nSlot, bool bDeep = true );

View file

@ -1122,8 +1122,8 @@ public:
/// Use OS specific way to bring user attention to current window
virtual void FlashWindow() const;
virtual void SetTaskBarProgress(int nCurrentProgress);
virtual void SetTaskBarState(VclTaskBarStates eTaskBarState);
void SetTaskBarProgress(int nCurrentProgress);
void SetTaskBarState(VclTaskBarStates eTaskBarState);
/** @name Accessibility
*/

View file

@ -405,7 +405,7 @@ public:
virtual void SAL_CALL removeEventListener( const css::uno::Reference< css::lang::XEventListener >& aListener ) override;
private:
virtual css::uno::Reference< ::css::drawing::XDrawPage > insertNewImpl( sal_Int32 nIndex, std::optional<OUString> oName );
css::uno::Reference< ::css::drawing::XDrawPage > insertNewImpl( sal_Int32 nIndex, std::optional<OUString> oName );
};
/***********************************************************************

View file

@ -67,7 +67,7 @@ public:
#ifdef DBG_UTIL
virtual std::string toString() const override;
#endif
virtual OOXMLValue* clone() const;
OOXMLValue* clone() const;
private:
typedef std::variant<std::monostate, //

View file

@ -195,7 +195,6 @@ public:
// callbacks for printer updates
virtual void updatePrinterUpdate() {}
virtual void jobEndedPrinterUpdate() {}
/// Set the app's (somewhat) magic/main-thread to this one.
virtual void updateMainThread() {}

View file

@ -63,7 +63,6 @@ public:
virtual OUString GetDefaultPrinter() override;
virtual void PostPrintersChanged() = 0;
virtual void updatePrinterUpdate() override;
virtual void jobEndedPrinterUpdate() override;
bool isPrinterInit() const { return mbPrinterInit; }
virtual std::unique_ptr<GenPspGraphics> CreatePrintGraphics() = 0;

View file

@ -99,10 +99,6 @@ void SalGenericInstance::updatePrinterUpdate()
{
}
void SalGenericInstance::jobEndedPrinterUpdate()
{
}
using namespace psp;
bool AquaGraphicsBackend::drawNativeControl(ControlType /* nType */,

View file

@ -721,7 +721,6 @@ bool PspSalPrinter::StartJob(
bool PspSalPrinter::EndJob()
{
GetSalInstance()->jobEndedPrinterUpdate();
return true;
}
@ -1035,8 +1034,4 @@ void SalGenericInstance::updatePrinterUpdate()
PostPrintersChanged();
}
void SalGenericInstance::jobEndedPrinterUpdate()
{
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */