Kaydet (Commit) d4f78fa3 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unnecessaryvirtual in svx..sw

Change-Id: I4ae8de558550e6577c28b95e0aaed74f00d79c29
Reviewed-on: https://gerrit.libreoffice.org/30650Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
Tested-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst b7914a9a
......@@ -106,7 +106,7 @@ namespace accessibility
@see SvxViewForwarder
@see SvxEditViewForwarder
*/
class SVX_DLLPUBLIC AccessibleTextHelper
class SVX_DLLPUBLIC AccessibleTextHelper final
{
public:
......@@ -124,7 +124,7 @@ namespace accessibility
*/
explicit AccessibleTextHelper( ::std::unique_ptr< SvxEditSource > && pEditSource );
virtual ~AccessibleTextHelper();
~AccessibleTextHelper();
protected:
......
......@@ -75,7 +75,7 @@ struct ShapeTypeDescriptor
service names of shapes and associated enum values and to create new
accessible objects for given shapes.
*/
class SVX_DLLPUBLIC ShapeTypeHandler
class SVX_DLLPUBLIC ShapeTypeHandler final
{
public:
enum { UNKNOWN_SHAPE_TYPE = 0 };
......@@ -151,7 +151,7 @@ protected:
/** This destructor is never called at the moment. But because this
class is a singleton this is not a problem.
*/
virtual ~ShapeTypeHandler();
~ShapeTypeHandler();
private:
/// Pointer to the only instance of this class.
......
......@@ -144,7 +144,7 @@ namespace svxform {
typedef std::vector< css::uno::Reference< css::uno::XInterface> > InterfaceArray;
class SAL_WARN_UNUSED SVX_DLLPUBLIC FmSearchEngine
class SAL_WARN_UNUSED SVX_DLLPUBLIC FmSearchEngine final
{
friend class FmSearchThread;
......@@ -275,7 +275,7 @@ public:
const OUString& strVisibleFields,
const InterfaceArray& arrFields);
virtual ~FmSearchEngine();
~FmSearchEngine();
/** the link will be called on every record and after the completion of the search, the parameter is a pointer to
a FmSearchProgress structure
......
......@@ -51,7 +51,7 @@ struct OrientationHelper_Impl;
direct modifications of the "Stacked text" check box. Otherwise the update
mechanism of registered controls will not work.
*/
class SVX_DLLPUBLIC OrientationHelper
class SVX_DLLPUBLIC OrientationHelper final
{
public:
/** @param rNfRotation A numeric field that will be connected to the DialControl. */
......@@ -60,7 +60,7 @@ public:
NumericField& rNfRotation,
CheckBox& rCbStacked );
virtual ~OrientationHelper();
~OrientationHelper();
/** Registers the passed window to be enabled/disabled on call of Enable().
@param eDisableIfStacked
......
......@@ -28,7 +28,7 @@ namespace sdr
{
namespace contact
{
class SVX_DLLPUBLIC DisplayInfo
class SVX_DLLPUBLIC DisplayInfo final
{
protected:
// The Layers which shall be processed (visible)
......@@ -69,7 +69,7 @@ namespace sdr
DisplayInfo();
// destructor
virtual ~DisplayInfo();
~DisplayInfo();
// access to ProcessLayers
void SetProcessLayers(const SetOfByte& rSet);
......
......@@ -32,7 +32,7 @@ class SfxItemPool;
class SvStream;
class SVX_DLLPUBLIC XFillExchangeData
class SVX_DLLPUBLIC XFillExchangeData final
{
private:
XFillAttrSetItem* pXFillAttrSetItem;
......@@ -40,7 +40,7 @@ private:
public:
XFillExchangeData(const XFillAttrSetItem& rXFillAttrSetItem);
virtual ~XFillExchangeData();
~XFillExchangeData();
XFillExchangeData& operator=( const XFillExchangeData& rXFillExchangeData );
......
......@@ -190,14 +190,14 @@ public:
typedef ::std::vector< FmEntryData* > FmEntryDataBaseList;
class FmEntryDataList
class FmEntryDataList final
{
private:
FmEntryDataBaseList maEntryDataList;
public:
FmEntryDataList();
virtual ~FmEntryDataList();
~FmEntryDataList();
FmEntryData* at( size_t Index )
{ return ( Index < maEntryDataList.size() ) ? maEntryDataList[ Index ] : nullptr; }
......
......@@ -18,7 +18,7 @@ class SdrObjUserDataList;
class SdrGluePointList;
// Bitsack for DrawObjects
class SdrObjPlusData
class SdrObjPlusData final
{
friend class SdrObject;
......@@ -34,7 +34,7 @@ class SdrObjPlusData
public:
SdrObjPlusData();
virtual ~SdrObjPlusData();
~SdrObjPlusData();
SdrObjPlusData* Clone(SdrObject* pObj1) const;
void SetGluePoints(const SdrGluePointList& rPts);
......
......@@ -52,11 +52,11 @@ typedef std::vector< BorderLineVector > BorderLineMap;
// TableModel
class TableLayouter
class TableLayouter final
{
public:
explicit TableLayouter( const TableModelRef& xTableModel );
virtual ~TableLayouter();
~TableLayouter();
/** try to fit the table into the given rectangle.
If the rectangle is to small, it will be grown to fit the table.
......
......@@ -36,13 +36,13 @@ namespace textconversiondlgs
{
struct DictionaryEntry
struct DictionaryEntry final
{
DictionaryEntry( const OUString& rTerm, const OUString& rMapping
, sal_Int16 nConversionPropertyType //linguistic2::ConversionPropertyType
, bool bNewEntry = false );
virtual ~DictionaryEntry();
~DictionaryEntry();
OUString m_aTerm;
OUString m_aMapping;
......
......@@ -392,7 +392,7 @@ typedef boost::multi_index_container<
>
SwPageDescsBase;
class SwPageDescs
class SwPageDescs final
{
// function updating ByName index via modify
friend bool SwPageDesc::SetName( const OUString& rNewName );
......@@ -415,7 +415,7 @@ public:
SwPageDescs();
// frees all SwPageDesc!
virtual ~SwPageDescs();
~SwPageDescs();
void clear() { return m_Array.clear(); }
bool empty() const { return m_Array.empty(); }
......
......@@ -239,7 +239,7 @@ public:
};
// internal, used by SwCursor::SaveState() etc.
struct SwCursor_SavePos
struct SwCursor_SavePos final
{
sal_uLong nNode;
sal_Int32 nContent;
......@@ -250,7 +250,7 @@ struct SwCursor_SavePos
nContent( rCursor.GetPoint()->nContent.GetIndex() ),
pNext( nullptr )
{}
virtual ~SwCursor_SavePos() {}
~SwCursor_SavePos() {}
DECL_FIXEDMEMPOOL_NEWDEL( SwCursor_SavePos )
};
......
......@@ -43,12 +43,12 @@
It assures that not more than <mnStartedSize> threads
are started.
*/
class ThreadManager
class ThreadManager final
{
public:
explicit ThreadManager( css::uno::Reference< css::util::XJobManager >& rThreadJoiner );
virtual ~ThreadManager();
~ThreadManager();
std::weak_ptr< IFinishedThreadListener > GetThreadListenerWeakRef();
void NotifyAboutFinishedThread( const oslInterlockedCount nThreadID );
......
......@@ -162,7 +162,7 @@ typedef std::map<sal_uInt32, WW8TableNodeInfoInner*,
class WW8TableInfo;
class WW8TableNodeInfo
class WW8TableNodeInfo final
{
public:
typedef std::map<sal_uInt32, WW8TableNodeInfoInner::Pointer_t,
......@@ -180,7 +180,7 @@ public:
typedef std::shared_ptr<WW8TableNodeInfo> Pointer_t;
WW8TableNodeInfo(WW8TableInfo * pParent, const SwNode * pTextNode);
virtual ~WW8TableNodeInfo();
~WW8TableNodeInfo();
void setDepth(sal_uInt32 nDepth);
void setEndOfLine(bool bEndOfLine);
......@@ -289,7 +289,7 @@ public:
RowSpansPtr getRowSpansOfRow(WW8TableNodeInfoInner * pNodeInfo);
};
class WW8TableInfo
class WW8TableInfo final
{
friend class WW8TableNodeInfoInner;
typedef std::unordered_map<const SwNode *, WW8TableNodeInfo::Pointer_t, hashNode > Map_t;
......@@ -339,7 +339,7 @@ public:
typedef std::shared_ptr<WW8TableInfo> Pointer_t;
WW8TableInfo();
virtual ~WW8TableInfo();
~WW8TableInfo();
void processSwTable(const SwTable * pTable);
WW8TableNodeInfo * processSwTableByLayout(const SwTable * pTable, RowEndInners_t &rLastRowEnds);
......
......@@ -38,7 +38,7 @@ namespace com { namespace sun { namespace star {
typedef std::map< OUString, RedlineInfo* > RedlineMapType;
class XMLRedlineImportHelper
class XMLRedlineImportHelper final
{
const OUString sInsertion;
const OUString sDeletion;
......@@ -65,7 +65,7 @@ public:
// redline mode
const css::uno::Reference<css::beans::XPropertySet> & rModel,
const css::uno::Reference<css::beans::XPropertySet> & rImportInfoSet );
virtual ~XMLRedlineImportHelper();
~XMLRedlineImportHelper();
// create a redline object
// (The redline will be inserted into the document after both start
......
......@@ -29,13 +29,13 @@ public:
virtual SwEditWin* GetEditWin() = 0;
};
class SwFrameControl
class SwFrameControl final
{
VclPtr<vcl::Window> mxWindow;
ISwFrameControl *mpIFace;
public:
SwFrameControl( const VclPtr<vcl::Window> &pWindow );
virtual ~SwFrameControl();
~SwFrameControl();
vcl::Window* GetWindow() { return mxWindow.get(); }
......
......@@ -21,7 +21,7 @@ class SwWrtShell;
struct SwPosition;
class SwUnoCursor;
class SwNavigationMgr
class SwNavigationMgr final
{
private:
/*
......@@ -43,7 +43,7 @@ private:
public:
/* Constructor that initializes the shell to the current shell */
SwNavigationMgr( SwWrtShell & rShell );
virtual ~SwNavigationMgr()
~SwNavigationMgr()
{
SolarMutexGuard g;
m_entries.clear();
......
......@@ -59,7 +59,7 @@ class SwRedlineDataParentSortArr : public o3tl::sorted_vector<SwRedlineDataParen
typedef std::vector<std::unique_ptr<SwRedlineDataChild>> SwRedlineDataChildArr;
class SW_DLLPUBLIC SwRedlineAcceptDlg
class SW_DLLPUBLIC SwRedlineAcceptDlg final
{
VclPtr<vcl::Window> m_pParentDlg;
std::vector<std::unique_ptr<SwRedlineDataParent>> m_RedlineParents;
......@@ -119,7 +119,7 @@ class SW_DLLPUBLIC SwRedlineAcceptDlg
public:
SwRedlineAcceptDlg(vcl::Window *pParent, VclBuilderContainer *pBuilder, vcl::Window *pContentArea, bool bAutoFormat = false);
virtual ~SwRedlineAcceptDlg();
~SwRedlineAcceptDlg();
DECL_LINK( FilterChangedHdl, SvxTPFilter*, void );
......
......@@ -78,7 +78,7 @@ public:
void GetNumFormat(size_t, SwNumFormat const*&, OUString const*&) const;
};
class SW_DLLPUBLIC SwChapterNumRules
class SW_DLLPUBLIC SwChapterNumRules final
{
public:
enum { nMaxRules = MAX_NUM_RULES }; // currently 9 defined forms
......@@ -90,7 +90,7 @@ protected:
public:
SwChapterNumRules();
virtual ~SwChapterNumRules();
~SwChapterNumRules();
inline const SwNumRulesWithName* GetRules(sal_uInt16 nIdx) const;
void CreateEmptyNumRule(sal_uInt16 nIdx); // for import
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment