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

loplugin:unnecessaryvirtual in hwpfilter..rsc

Change-Id: I2e9df8223d503b813b4c458747e8c44bb8ef8868
Reviewed-on: https://gerrit.libreoffice.org/30661Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst dda87c6a
......@@ -31,7 +31,7 @@ class Node;
using namespace ::com::sun::star::xml::sax;
class Formula
class Formula final
{
public:
explicit Formula(char *_eq)
......@@ -40,7 +40,7 @@ public:
eq = _eq;
trim();
}
virtual ~Formula(){ }
~Formula(){ }
void setDocumentHandler(Reference < XDocumentHandler > const & xHandler )
{
......
......@@ -87,7 +87,7 @@ struct AstExprValue
const sal_Char* SAL_CALL exprTypeToString(ExprType t);
class AstExpression
class AstExpression final
{
public:
// Constructor(s)
......@@ -100,7 +100,7 @@ public:
AstExpression(double d);
AstExpression(OString* scopedName);
virtual ~AstExpression();
~AstExpression();
// Data Accessors
AstExprValue* getExprValue()
......
......@@ -23,11 +23,11 @@
class AstScope;
class AstStack
class AstStack final
{
public:
AstStack();
virtual ~AstStack();
~AstStack();
sal_uInt32 depth() { return m_top;}
AstScope* top();
......
......@@ -24,11 +24,11 @@
#include <vector>
class FeDeclarator
class FeDeclarator final
{
public:
FeDeclarator(const OString& name);
virtual ~FeDeclarator();
~FeDeclarator();
const OString& getName()
{ return m_name; }
bool checkType(AstDeclaration const * pType);
......@@ -39,18 +39,18 @@ private:
typedef ::std::list< FeDeclarator* > FeDeclList;
class FeInheritanceHeader
class FeInheritanceHeader final
{
public:
FeInheritanceHeader(
NodeType nodeType, OString* pName, OString* pInherits,
std::vector< OString > * typeParameters);
virtual ~FeInheritanceHeader()
~FeInheritanceHeader()
{
if ( m_pName )
delete m_pName;
}
}
NodeType getNodeType()
{ return m_nodeType; }
......
......@@ -37,11 +37,11 @@ class AstType;
class Options;
class ErrorHandler;
class Idlc
class Idlc final
{
public:
Idlc(Options* pOptions);
virtual ~Idlc();
~Idlc();
void init();
......
......@@ -76,7 +76,7 @@ public:
virtual ~FormulaCompiler();
/** Mappings from strings to OpCodes and vice versa. */
class FORMULA_DLLPUBLIC OpCodeMap
class FORMULA_DLLPUBLIC OpCodeMap final
{
OpCodeHashMap * mpHashMap; /// Hash map of symbols, OUString -> OpCode
OUString * mpTable; /// Array of symbols, OpCode -> OUString, offset==OpCode
......@@ -103,7 +103,7 @@ public:
{
mbEnglish = FormulaGrammar::isEnglish( meGrammar);
}
virtual ~OpCodeMap();
~OpCodeMap();
/** Copy mappings from r into this map, effectively replacing this map.
......
......@@ -34,7 +34,7 @@ namespace framework{
to switch into the backing mode, close the current active frame only or
exit the whole application explicitly or implicitly.
*/
class FWE_DLLPUBLIC FrameListAnalyzer
class FWE_DLLPUBLIC FrameListAnalyzer final
{
// types
......@@ -177,7 +177,7 @@ class FWE_DLLPUBLIC FrameListAnalyzer
FrameListAnalyzer( const css::uno::Reference< css::frame::XFramesSupplier >& xSupplier ,
const css::uno::Reference< css::frame::XFrame >& xReferenceFrame ,
sal_uInt32 eDetectMode );
virtual ~FrameListAnalyzer();
~FrameListAnalyzer();
// helper
......
......@@ -94,14 +94,14 @@ public:
}
};
class FWE_DLLPUBLIC MenuConfiguration
class FWE_DLLPUBLIC MenuConfiguration final
{
public:
MenuConfiguration(
// use const when giving a uno reference by reference
const css::uno::Reference< css::uno::XComponentContext >& rxContext );
virtual ~MenuConfiguration();
~MenuConfiguration();
css::uno::Reference< css::container::XIndexAccess > CreateMenuBarConfigurationFromXML(
css::uno::Reference< css::io::XInputStream >& rInputStream )
......
......@@ -36,14 +36,14 @@ class JVMACCESS_DLLPUBLIC UnoVirtualMachine: public salhelper::SimpleReferenceOb
public:
/** An exception indicating failure to create a UnoVirtualMachine.
*/
class JVMACCESS_DLLPUBLIC CreationException
class JVMACCESS_DLLPUBLIC CreationException final
{
public:
CreationException();
CreationException(CreationException const &);
virtual ~CreationException();
~CreationException();
CreationException & operator =(CreationException const &);
};
......
......@@ -48,14 +48,14 @@ public:
public:
/** An exception indicating failure to create an AttachGuard.
*/
class JVMACCESS_DLLPUBLIC CreationException
class JVMACCESS_DLLPUBLIC CreationException final
{
public:
CreationException();
CreationException(CreationException const &);
virtual ~CreationException();
~CreationException();
CreationException & operator =(CreationException const &);
};
......
......@@ -49,11 +49,11 @@ struct RecordInputSource
};
class RecordParser
class RecordParser final
{
public:
RecordParser();
virtual ~RecordParser();
~RecordParser();
void setFragmentHandler( const ::rtl::Reference< FragmentHandler >& rxHandler );
......
......@@ -113,7 +113,7 @@ public:
sal_uInt32 inputLength = 0) override;
};
class Digest
class Digest final
{
public:
enum DigestType
......@@ -136,7 +136,7 @@ private:
public:
Digest(DigestType eType);
virtual ~Digest();
~Digest();
void update(std::vector<sal_uInt8>& input);
void finalize(std::vector<sal_uInt8>& digest);
......
......@@ -191,7 +191,7 @@ public:
const css::uno::Reference< css::drawing::XShape > &
getXShape() const { return mxShape; }
virtual void applyShapeReference( const Shape& rReferencedShape, bool bUseText = true );
void applyShapeReference( const Shape& rReferencedShape, bool bUseText = true );
const ::std::vector<OUString>&
getExtDrawings() { return maExtDrawings; }
void addExtDrawingRelId( const OUString &rRelId ) { maExtDrawings.push_back( rRelId ); }
......
......@@ -32,7 +32,7 @@ struct GrabBagStackElement
};
/// Tool that is useful for construction of a nested Sequence/PropertyValue hierarchy
class OOX_DLLPUBLIC GrabBagStack
class OOX_DLLPUBLIC GrabBagStack final
{
private:
std::stack<GrabBagStackElement> mStack;
......@@ -40,8 +40,7 @@ private:
public:
GrabBagStack(const OUString& aElementName);
virtual ~GrabBagStack();
~GrabBagStack();
const OUString& getCurrentName() { return mCurrentElement.maElementName;}
......
......@@ -192,14 +192,14 @@ enum ApiDefaultStateMode
/** A base class with useful helper functions for something that is able to
convert ActiveX and ComCtl form controls.
*/
class OOX_DLLPUBLIC ControlConverter
class OOX_DLLPUBLIC ControlConverter final
{
public:
explicit ControlConverter(
const css::uno::Reference< css::frame::XModel >& rxDocModel,
const GraphicHelper& rGraphicHelper,
bool bDefaultColorBgr = true );
virtual ~ControlConverter();
~ControlConverter();
// Generic conversion -----------------------------------------------------
......
......@@ -50,11 +50,11 @@ namespace ole {
/** Common properties for all controls that are part of a VBA user form or of
another container control in a VBA user form. */
class VbaSiteModel
class VbaSiteModel final
{
public:
explicit VbaSiteModel();
virtual ~VbaSiteModel();
~VbaSiteModel();
/** Allows to set single properties specified by XML token identifier. */
void importProperty( sal_Int32 nPropId, const OUString& rValue );
......
......@@ -46,13 +46,13 @@ namespace oox { namespace ppt {
typedef std::shared_ptr< TimeNode > TimeNodePtr;
typedef std::list< TimeNodePtr > TimeNodePtrList;
class TimeNode
class TimeNode final
{
public:
typedef ::std::map< OUString, css::uno::Any > UserDataMap;
TimeNode( sal_Int16 nNodeType );
virtual ~TimeNode();
~TimeNode();
NodePropertyMap & getNodeProperties() { return maNodeProperties; }
UserDataMap & getUserData() { return maUserData; }
......
......@@ -260,7 +260,7 @@ public:
The class also determines useful default values for settings which have not been made.
*/
class MergedSettings
class MergedSettings final
{
private:
const MergedSettings& operator = (MergedSettings&) = delete;
......@@ -280,7 +280,7 @@ private:
public:
MergedSettings();
virtual ~MergedSettings();
~MergedSettings();
/** the default is true.
*/
......
......@@ -73,7 +73,7 @@ public:
};
class SpellCache
class SpellCache final
{
css::uno::Reference< css::linguistic2::XDictionaryListEventListener >
xFlushLstnr;
......@@ -88,7 +88,7 @@ class SpellCache
public:
SpellCache();
virtual ~SpellCache();
~SpellCache();
// called from FlushListener
void Flush();
......
......@@ -75,11 +75,11 @@ class LwpPara;
class LwpIndentOverride;
class LwpBulletOverride;
class LwpBulletStyleMgr
class LwpBulletStyleMgr final
{
public:
LwpBulletStyleMgr();
virtual ~LwpBulletStyleMgr();
~LwpBulletStyleMgr();
OUString RegisterBulletStyle(LwpPara* pPara, LwpBulletOverride* pBullOver,
LwpIndentOverride* pIndent);
inline void SetFoundry(LwpFoundry* pFoundry);
......
......@@ -302,11 +302,11 @@ protected:
virtual LWP_LAYOUT_TYPE GetLayoutType () override { return LWP_HEAD_LAYOUT;}
};
class LwpLayoutStyle
class LwpLayoutStyle final
{
public:
LwpLayoutStyle();
virtual ~LwpLayoutStyle();
~LwpLayoutStyle();
void Read(LwpObjectStream* pStrm);
private:
sal_uInt32 m_nStyleDefinition;
......@@ -314,11 +314,11 @@ private:
sal_uInt16 m_nKey;
};
class LwpLayoutMisc
class LwpLayoutMisc final
{
public:
LwpLayoutMisc();
virtual ~LwpLayoutMisc();
~LwpLayoutMisc();
void Read(LwpObjectStream* pStrm);
private:
sal_Int32 m_nGridDistance;
......
......@@ -63,11 +63,11 @@
#include "xfglobal.hxx"
class XFOfficeMeta
class XFOfficeMeta final
{
public:
XFOfficeMeta(){}
virtual ~XFOfficeMeta(){}
~XFOfficeMeta(){}
void SetCreator(const OUString& creator);
void SetDescription(const OUString& dsr);
......
......@@ -104,12 +104,11 @@ struct Path2D
};
class CustomShapeProperties
class CustomShapeProperties final
{
public:
CustomShapeProperties();
virtual ~CustomShapeProperties();
~CustomShapeProperties();
void pushToPropSet( const ::oox::core::FilterBase& rFilterBase,
const css::uno::Reference < css::beans::XPropertySet > & xPropSet,
......
......@@ -330,7 +330,7 @@ Reference< css::frame::XFrame > lcl_getFrame( const Reference< css::frame::XMod
return xFrame;
}
class OleFormCtrlExportHelper
class OleFormCtrlExportHelper final
{
::oox::ole::EmbeddedControl maControl;
::oox::ole::ControlModelBase* mpModel;
......@@ -344,7 +344,6 @@ class OleFormCtrlExportHelper
OUString maGUID;
public:
OleFormCtrlExportHelper( const Reference< XComponentContext >& rxCtx, const Reference< XModel >& xDocModel, const Reference< XControlModel >& xModel );
virtual ~OleFormCtrlExportHelper() { }
OUString getGUID()
{
OUString sResult;
......
......@@ -111,7 +111,7 @@ enum RscVerbosity
RscVerbosityVerbose = 2
};
class RscError
class RscError final
{
FILE * fListing;
RscVerbosity m_verbosity;
......@@ -122,7 +122,6 @@ class RscError
void ErrorFormat( const ERRTYPE& rError, RscTop * pClass,
const RscId & aId );
public:
virtual ~RscError() {}
sal_uInt32 nErrors; // Number of errors
RscError( RscVerbosity _verbosity )
......
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