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

loplugin:unnecessaryvirtual in framework

Change-Id: I893bf955e45e661e3ec440dbd530fca22931c23b
Reviewed-on: https://gerrit.libreoffice.org/30666Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 990102be
...@@ -82,7 +82,7 @@ private: ...@@ -82,7 +82,7 @@ private:
// class ArgInput // class ArgInput
class ArgInput class ArgInput final
{ {
private: private:
Link<ArgInput&,void> aFxClickLink; Link<ArgInput&,void> aFxClickLink;
...@@ -104,7 +104,7 @@ public: ...@@ -104,7 +104,7 @@ public:
ArgInput(); ArgInput();
virtual ~ArgInput() {} ~ArgInput() {}
void InitArgInput ( FixedText* pftArg, void InitArgInput ( FixedText* pftArg,
PushButton* pbtnFx, PushButton* pbtnFx,
......
...@@ -52,7 +52,7 @@ typedef ::std::vector< css::uno::Reference< css::frame::XFrame > > TFrameContai ...@@ -52,7 +52,7 @@ typedef ::std::vector< css::uno::Reference< css::frame::XFrame > > TFrameContai
@devstatus ready to use @devstatus ready to use
@threadsafe yes @threadsafe yes
*//*-*************************************************************************************************************/ *//*-*************************************************************************************************************/
class FrameContainer class FrameContainer final
{ {
// member // member
...@@ -70,7 +70,7 @@ class FrameContainer ...@@ -70,7 +70,7 @@ class FrameContainer
/// constructor / destructor /// constructor / destructor
FrameContainer(); FrameContainer();
virtual ~FrameContainer(); ~FrameContainer();
/// add/remove/mark container items /// add/remove/mark container items
void append ( const css::uno::Reference< css::frame::XFrame >& xFrame ); void append ( const css::uno::Reference< css::frame::XFrame >& xFrame );
......
...@@ -87,7 +87,7 @@ typedef std::unordered_map<OUString, ProtocolHandler, OUStringHash> HandlerHash; ...@@ -87,7 +87,7 @@ typedef std::unordered_map<OUString, ProtocolHandler, OUStringHash> HandlerHash;
*/ */
class HandlerCFGAccess; class HandlerCFGAccess;
class FWI_DLLPUBLIC HandlerCache class FWI_DLLPUBLIC HandlerCache final
{ {
/* member */ /* member */
private: private:
...@@ -105,7 +105,7 @@ class FWI_DLLPUBLIC HandlerCache ...@@ -105,7 +105,7 @@ class FWI_DLLPUBLIC HandlerCache
public: public:
HandlerCache(); HandlerCache();
virtual ~HandlerCache(); ~HandlerCache();
bool search( const OUString& sURL, ProtocolHandler* pReturn ) const; bool search( const OUString& sURL, ProtocolHandler* pReturn ) const;
bool search( const css::util::URL& aURL, ProtocolHandler* pReturn ) const; bool search( const css::util::URL& aURL, ProtocolHandler* pReturn ) const;
......
...@@ -39,7 +39,7 @@ namespace framework{ ...@@ -39,7 +39,7 @@ namespace framework{
@devstatus ready to use @devstatus ready to use
@threadsafe yes @threadsafe yes
*/ */
class TaskCreator class TaskCreator final
{ {
// member // member
...@@ -51,13 +51,10 @@ class TaskCreator ...@@ -51,13 +51,10 @@ class TaskCreator
public: public:
TaskCreator( const css::uno::Reference< css::uno::XComponentContext >& xContext ); TaskCreator( const css::uno::Reference< css::uno::XComponentContext >& xContext );
virtual ~TaskCreator( ); ~TaskCreator( );
css::uno::Reference< css::frame::XFrame > createTask( const OUString& sName ); css::uno::Reference< css::frame::XFrame > createTask( const OUString& sName );
// helper
private:
}; // class TaskCreator }; // class TaskCreator
} // namespace framework } // namespace framework
......
...@@ -36,7 +36,7 @@ namespace framework{ ...@@ -36,7 +36,7 @@ namespace framework{
instead of using soecialize config items of the svtools instead of using soecialize config items of the svtools
project. This class can wrapp such configuration access. project. This class can wrapp such configuration access.
*/ */
class FWI_DLLPUBLIC ConfigAccess class FWI_DLLPUBLIC ConfigAccess final
{ {
public: public:
...@@ -78,7 +78,7 @@ class FWI_DLLPUBLIC ConfigAccess ...@@ -78,7 +78,7 @@ class FWI_DLLPUBLIC ConfigAccess
ConfigAccess( const css::uno::Reference< css::uno::XComponentContext >& rxContext, ConfigAccess( const css::uno::Reference< css::uno::XComponentContext >& rxContext,
const OUString& sRoot ); const OUString& sRoot );
virtual ~ConfigAccess(); ~ConfigAccess();
void open ( EOpenMode eMode ); void open ( EOpenMode eMode );
void close ( ); void close ( );
......
...@@ -41,7 +41,7 @@ namespace framework{ ...@@ -41,7 +41,7 @@ namespace framework{
(or proxy) for all config data of a registered job. (or proxy) for all config data of a registered job.
But it doesn't implement any execute functionality! But it doesn't implement any execute functionality!
*/ */
class JobData class JobData final
{ {
public: public:
...@@ -180,7 +180,7 @@ class JobData ...@@ -180,7 +180,7 @@ class JobData
JobData( const css::uno::Reference< css::uno::XComponentContext >& rxContext ); JobData( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
JobData( const JobData& rCopy ); JobData( const JobData& rCopy );
virtual ~JobData( ); ~JobData( );
JobData& operator=( const JobData& rCopy ); JobData& operator=( const JobData& rCopy );
......
...@@ -36,7 +36,7 @@ namespace framework{ ...@@ -36,7 +36,7 @@ namespace framework{
data from the code place where the job was finished data from the code place where the job was finished
to the outside code, where e.g. listener must be notified. to the outside code, where e.g. listener must be notified.
*/ */
class JobResult class JobResult final
{ {
// types // types
...@@ -107,7 +107,7 @@ class JobResult ...@@ -107,7 +107,7 @@ class JobResult
JobResult( ); JobResult( );
JobResult( const css::uno::Any& aResult ); JobResult( const css::uno::Any& aResult );
JobResult( const JobResult& rCopy ); JobResult( const JobResult& rCopy );
virtual ~JobResult( ); ~JobResult( );
JobResult& operator=( const JobResult& rCopy ); JobResult& operator=( const JobResult& rCopy );
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
namespace framework{ namespace framework{
class AcceleratorConfigurationWriter class AcceleratorConfigurationWriter final
{ {
// member // member
...@@ -60,7 +60,7 @@ class AcceleratorConfigurationWriter ...@@ -60,7 +60,7 @@ class AcceleratorConfigurationWriter
const css::uno::Reference< css::xml::sax::XDocumentHandler >& xConfig ); const css::uno::Reference< css::xml::sax::XDocumentHandler >& xConfig );
/** @short does nothing real ... */ /** @short does nothing real ... */
virtual ~AcceleratorConfigurationWriter(); ~AcceleratorConfigurationWriter();
/** @short TODO */ /** @short TODO */
void flush(); void flush();
......
...@@ -130,14 +130,14 @@ class OReadImagesDocumentHandler : public ::cppu::WeakImplHelper< css::xml::sax: ...@@ -130,14 +130,14 @@ class OReadImagesDocumentHandler : public ::cppu::WeakImplHelper< css::xml::sax:
css::uno::Reference< css::xml::sax::XLocator > m_xLocator; css::uno::Reference< css::xml::sax::XLocator > m_xLocator;
}; };
class OWriteImagesDocumentHandler class OWriteImagesDocumentHandler final
{ {
public: public:
OWriteImagesDocumentHandler( OWriteImagesDocumentHandler(
const ImageListsDescriptor& aItems, const ImageListsDescriptor& aItems,
css::uno::Reference< css::xml::sax::XDocumentHandler > const & css::uno::Reference< css::xml::sax::XDocumentHandler > const &
rWriteDocumentHandler); rWriteDocumentHandler);
virtual ~OWriteImagesDocumentHandler(); ~OWriteImagesDocumentHandler();
void WriteImagesDocument() throw void WriteImagesDocument() throw
( css::xml::sax::SAXException, ( css::xml::sax::SAXException,
......
...@@ -250,14 +250,14 @@ class FWE_DLLPUBLIC OReadMenuPopupHandler : public ReadMenuDocumentHandlerBase ...@@ -250,14 +250,14 @@ class FWE_DLLPUBLIC OReadMenuPopupHandler : public ReadMenuDocumentHandlerBase
NextElementClose m_nNextElementExpected; NextElementClose m_nNextElementExpected;
}; // OReadMenuPopupHandler }; // OReadMenuPopupHandler
class FWE_DLLPUBLIC OWriteMenuDocumentHandler class FWE_DLLPUBLIC OWriteMenuDocumentHandler final
{ {
public: public:
OWriteMenuDocumentHandler( OWriteMenuDocumentHandler(
const css::uno::Reference< css::container::XIndexAccess >& rMenuBarContainer, const css::uno::Reference< css::container::XIndexAccess >& rMenuBarContainer,
const css::uno::Reference< css::xml::sax::XDocumentHandler >& rDocumentHandler, const css::uno::Reference< css::xml::sax::XDocumentHandler >& rDocumentHandler,
bool bIsMenuBar ); bool bIsMenuBar );
virtual ~OWriteMenuDocumentHandler(); ~OWriteMenuDocumentHandler();
void WriteMenuDocument() throw void WriteMenuDocument() throw
( css::xml::sax::SAXException, css::uno::RuntimeException ); ( css::xml::sax::SAXException, css::uno::RuntimeException );
......
...@@ -117,13 +117,13 @@ class FWE_DLLPUBLIC OReadStatusBarDocumentHandler : ...@@ -117,13 +117,13 @@ class FWE_DLLPUBLIC OReadStatusBarDocumentHandler :
css::uno::Reference< css::xml::sax::XLocator > m_xLocator; css::uno::Reference< css::xml::sax::XLocator > m_xLocator;
}; };
class FWE_DLLPUBLIC OWriteStatusBarDocumentHandler class FWE_DLLPUBLIC OWriteStatusBarDocumentHandler final
{ {
public: public:
OWriteStatusBarDocumentHandler( OWriteStatusBarDocumentHandler(
const css::uno::Reference< css::container::XIndexAccess >& rStatusBarItems, const css::uno::Reference< css::container::XIndexAccess >& rStatusBarItems,
const css::uno::Reference< css::xml::sax::XDocumentHandler >& rWriteDocHandler ); const css::uno::Reference< css::xml::sax::XDocumentHandler >& rWriteDocHandler );
virtual ~OWriteStatusBarDocumentHandler(); ~OWriteStatusBarDocumentHandler();
void WriteStatusBarDocument() throw void WriteStatusBarDocument() throw
( css::xml::sax::SAXException, ( css::xml::sax::SAXException,
......
...@@ -136,13 +136,13 @@ class FWE_DLLPUBLIC OReadToolBoxDocumentHandler : ...@@ -136,13 +136,13 @@ class FWE_DLLPUBLIC OReadToolBoxDocumentHandler :
OUString m_aCommandURL; OUString m_aCommandURL;
}; };
class FWE_DLLPUBLIC OWriteToolBoxDocumentHandler class FWE_DLLPUBLIC OWriteToolBoxDocumentHandler final
{ {
public: public:
OWriteToolBoxDocumentHandler( OWriteToolBoxDocumentHandler(
const css::uno::Reference< css::container::XIndexAccess >& rItemAccess, const css::uno::Reference< css::container::XIndexAccess >& rItemAccess,
css::uno::Reference< css::xml::sax::XDocumentHandler >& rDocumentHandler ); css::uno::Reference< css::xml::sax::XDocumentHandler >& rDocumentHandler );
virtual ~OWriteToolBoxDocumentHandler(); ~OWriteToolBoxDocumentHandler();
void WriteToolBoxDocument() throw void WriteToolBoxDocument() throw
( css::xml::sax::SAXException, ( css::xml::sax::SAXException,
......
...@@ -28,12 +28,12 @@ ...@@ -28,12 +28,12 @@
namespace framework namespace framework
{ {
class FWE_DLLPUBLIC XMLNamespaces class FWE_DLLPUBLIC XMLNamespaces final
{ {
public: public:
XMLNamespaces(); XMLNamespaces();
XMLNamespaces( const XMLNamespaces& ); XMLNamespaces( const XMLNamespaces& );
virtual ~XMLNamespaces(); ~XMLNamespaces();
void addNamespace( const OUString& aName, const OUString& aValue ) void addNamespace( const OUString& aName, const OUString& aValue )
throw( css::xml::sax::SAXException ); throw( css::xml::sax::SAXException );
......
...@@ -54,10 +54,8 @@ namespace { ...@@ -54,10 +54,8 @@ namespace {
@descr This struct is allegedly shared and must be used within a @descr This struct is allegedly shared and must be used within a
synchronized section. But it isn't. synchronized section. But it isn't.
*/ */
struct TSharedStorages struct TSharedStorages final
{ {
public:
StorageHolder m_lStoragesShare; StorageHolder m_lStoragesShare;
StorageHolder m_lStoragesUser; StorageHolder m_lStoragesUser;
...@@ -66,7 +64,7 @@ struct TSharedStorages ...@@ -66,7 +64,7 @@ struct TSharedStorages
, m_lStoragesUser () , m_lStoragesUser ()
{}; {};
virtual ~TSharedStorages() {}; ~TSharedStorages() {};
}; };
/** @short provides access to the: /** @short provides access to the:
......
...@@ -32,7 +32,7 @@ class XMLBasedAcceleratorConfiguration; ...@@ -32,7 +32,7 @@ class XMLBasedAcceleratorConfiguration;
/** /**
TODO document me TODO document me
*/ */
class StorageHolder class StorageHolder final
{ {
// types // types
...@@ -79,7 +79,7 @@ class StorageHolder ...@@ -79,7 +79,7 @@ class StorageHolder
/** @short TODO /** @short TODO
*/ */
virtual ~StorageHolder(); ~StorageHolder();
/** @short TODO /** @short TODO
*/ */
......
...@@ -46,7 +46,7 @@ namespace framework{ ...@@ -46,7 +46,7 @@ namespace framework{
scenarios. On the other side VCL does not hold us alive (because it doesn't know our UNO reference). scenarios. On the other side VCL does not hold us alive (because it doesn't know our UNO reference).
So we register at the VCL level as an event listener and So we register at the VCL level as an event listener and
*/ */
class WindowCommandDispatch class WindowCommandDispatch final
{ {
private: private:
osl::Mutex m_mutex; osl::Mutex m_mutex;
...@@ -81,7 +81,7 @@ class WindowCommandDispatch ...@@ -81,7 +81,7 @@ class WindowCommandDispatch
/** @short used to free internal resources. /** @short used to free internal resources.
*/ */
virtual ~WindowCommandDispatch(); ~WindowCommandDispatch();
// implementation // implementation
......
...@@ -31,7 +31,7 @@ namespace framework{ ...@@ -31,7 +31,7 @@ namespace framework{
@descr This guard should be used to be sure, that any lock will be @descr This guard should be used to be sure, that any lock will be
released. Otherwise the locked document can hinder the office on shutdown! released. Otherwise the locked document can hinder the office on shutdown!
*/ */
class ActionLockGuard class ActionLockGuard final
{ {
// member // member
...@@ -64,7 +64,7 @@ class ActionLockGuard ...@@ -64,7 +64,7 @@ class ActionLockGuard
/** @short release this guard instance and make sure, that no lock /** @short release this guard instance and make sure, that no lock
will exist afterwards on the internal wrapped resource. will exist afterwards on the internal wrapped resource.
*/ */
virtual ~ActionLockGuard() ~ActionLockGuard()
{ {
unlock(); unlock();
} }
......
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