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