summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-31 08:12:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-31 12:40:10 +0100
commit32c53b465bc2052c2756f12294699fabae754756 (patch)
treeb5f9a8c3b79099e1eedfe3a0acf0524f2bc518a7
parent54bc266e319e3cae10b72ca9173afb600176a831 (diff)
loplugin:finalclasses in vbahelper
Change-Id: I4f940ef52a17a315b74cea0f0218e9a9a610e78b Reviewed-on: https://gerrit.libreoffice.org/81826 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--include/vbahelper/vbacollectionimpl.hxx4
-rw-r--r--include/vbahelper/vbahelper.hxx5
-rw-r--r--include/vbahelper/vbapropvalue.hxx2
-rw-r--r--include/vbahelper/vbareturntypes.hxx2
-rw-r--r--include/vbahelper/vbashaperange.hxx2
-rw-r--r--include/vbahelper/vbashapes.hxx2
6 files changed, 9 insertions, 8 deletions
diff --git a/include/vbahelper/vbacollectionimpl.hxx b/include/vbahelper/vbacollectionimpl.hxx
index 26853ad9077c..f545bb5c48c8 100644
--- a/include/vbahelper/vbacollectionimpl.hxx
+++ b/include/vbahelper/vbacollectionimpl.hxx
@@ -66,7 +66,7 @@ typedef ::cppu::WeakImplHelper< css::container::XEnumeration > EnumerationHelper
used to provide an enumeration from an index container with other objects
(e.g. UNO objects) where construction of the VBA objects is needed first.
*/
-class VBAHELPER_DLLPUBLIC SimpleIndexAccessToEnumeration : public EnumerationHelper_BASE
+class VBAHELPER_DLLPUBLIC SimpleIndexAccessToEnumeration final : public EnumerationHelper_BASE
{
public:
/// @throws css::uno::RuntimeException
@@ -144,7 +144,7 @@ public:
template< typename OneIfc >
-class XNamedObjectCollectionHelper : public ::cppu::WeakImplHelper< css::container::XNameAccess,
+class XNamedObjectCollectionHelper final : public ::cppu::WeakImplHelper< css::container::XNameAccess,
css::container::XIndexAccess,
css::container::XEnumerationAccess >
{
diff --git a/include/vbahelper/vbahelper.hxx b/include/vbahelper/vbahelper.hxx
index f32498ff0451..d130c4e6ea1c 100644
--- a/include/vbahelper/vbahelper.hxx
+++ b/include/vbahelper/vbahelper.hxx
@@ -191,7 +191,7 @@ public:
void setTop(double _fTop);
};
-class VBAHELPER_DLLPUBLIC ConcreteXShapeGeometryAttributes : public AbstractGeometryAttributes
+class VBAHELPER_DLLPUBLIC ConcreteXShapeGeometryAttributes final : public AbstractGeometryAttributes
{
std::unique_ptr< ShapeHelper > m_pShapeHelper;
public:
@@ -209,7 +209,8 @@ public:
#define VBA_LEFT "PositionX"
#define VBA_TOP "PositionY"
-class VBAHELPER_DLLPUBLIC UserFormGeometryHelper : public AbstractGeometryAttributes
+
+class VBAHELPER_DLLPUBLIC UserFormGeometryHelper final : public AbstractGeometryAttributes
{
public:
UserFormGeometryHelper(
diff --git a/include/vbahelper/vbapropvalue.hxx b/include/vbahelper/vbapropvalue.hxx
index 7c9e4bdda8ab..ee6443f08a34 100644
--- a/include/vbahelper/vbapropvalue.hxx
+++ b/include/vbahelper/vbapropvalue.hxx
@@ -41,7 +41,7 @@ protected:
};
-class VBAHELPER_DLLPUBLIC ScVbaPropValue : public ::cppu::WeakImplHelper< ov::XPropValue >
+class VBAHELPER_DLLPUBLIC ScVbaPropValue final : public ::cppu::WeakImplHelper< ov::XPropValue >
{
PropListener* m_pListener;
public:
diff --git a/include/vbahelper/vbareturntypes.hxx b/include/vbahelper/vbareturntypes.hxx
index 746107358214..7893a72cdbd8 100644
--- a/include/vbahelper/vbareturntypes.hxx
+++ b/include/vbahelper/vbareturntypes.hxx
@@ -43,7 +43,7 @@ namespace ooo
};
typedef DefaultReturnHelper< sal_Int32, ov::msforms::XReturnInteger > ReturnInteger_BASE;
- class ReturnInteger : public ReturnInteger_BASE
+ class ReturnInteger final : public ReturnInteger_BASE
{
public:
ReturnInteger( sal_Int32 nValue ) : ReturnInteger_BASE( nValue ){}
diff --git a/include/vbahelper/vbashaperange.hxx b/include/vbahelper/vbashaperange.hxx
index 4b8261ffa6cc..2560dbe99f5f 100644
--- a/include/vbahelper/vbashaperange.hxx
+++ b/include/vbahelper/vbashaperange.hxx
@@ -51,7 +51,7 @@ namespace ooo { namespace vba {
typedef CollTestImplHelper< ov::msforms::XShapeRange > ScVbaShapeRange_BASE;
-class VBAHELPER_DLLPUBLIC ScVbaShapeRange : public ScVbaShapeRange_BASE
+class VBAHELPER_DLLPUBLIC ScVbaShapeRange final : public ScVbaShapeRange_BASE
{
private:
css::uno::Reference< css::drawing::XDrawPage > m_xDrawPage;
diff --git a/include/vbahelper/vbashapes.hxx b/include/vbahelper/vbashapes.hxx
index 4a23b13d10c0..ad4dc93fbf20 100644
--- a/include/vbahelper/vbashapes.hxx
+++ b/include/vbahelper/vbashapes.hxx
@@ -51,7 +51,7 @@ namespace ooo { namespace vba {
typedef CollTestImplHelper< ov::msforms::XShapes > ScVbaShapes_BASE;
-class VBAHELPER_DLLPUBLIC ScVbaShapes : public ScVbaShapes_BASE
+class VBAHELPER_DLLPUBLIC ScVbaShapes final : public ScVbaShapes_BASE
{
private:
css::uno::Reference< css::drawing::XShapes > m_xShapes;