summaryrefslogtreecommitdiff
path: root/vbahelper
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-09-17 11:21:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-18 08:56:48 +0200
commitcc34b5a4c2d231de3882508654f15765d29f44c9 (patch)
tree8986ba3c3db40749ee0ec2af17d31614344c34fc /vbahelper
parent99102d4263189d347c7a7d0df8fd782e8c4c8ad5 (diff)
loplugin:constfields in vbahelper
Change-Id: I6121e2b41a5e6116be8027fe5197ce53d8f6797f Reviewed-on: https://gerrit.libreoffice.org/60562 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vbahelper')
-rw-r--r--vbahelper/source/msforms/vbacontrol.cxx4
-rw-r--r--vbahelper/source/msforms/vbacontrols.cxx4
-rw-r--r--vbahelper/source/msforms/vbacontrols.hxx4
-rw-r--r--vbahelper/source/msforms/vbalistcontrolhelper.cxx4
-rw-r--r--vbahelper/source/msforms/vbamultipage.cxx2
-rw-r--r--vbahelper/source/msforms/vbatextbox.hxx2
-rw-r--r--vbahelper/source/vbahelper/vbacolorformat.hxx2
-rw-r--r--vbahelper/source/vbahelper/vbacommandbar.hxx4
-rw-r--r--vbahelper/source/vbahelper/vbacommandbarcontrol.hxx2
-rw-r--r--vbahelper/source/vbahelper/vbacommandbarcontrols.hxx2
10 files changed, 15 insertions, 15 deletions
diff --git a/vbahelper/source/msforms/vbacontrol.cxx b/vbahelper/source/msforms/vbacontrol.cxx
index 8ea64d041ee5..e221592dcafe 100644
--- a/vbahelper/source/msforms/vbacontrol.cxx
+++ b/vbahelper/source/msforms/vbacontrol.cxx
@@ -432,8 +432,8 @@ void SAL_CALL ScVbaControl::setTag( const OUString& aTag )
struct PointerStyles
{
- long msoPointerStyle;
- PointerStyle loPointStyle;
+ long const msoPointerStyle;
+ PointerStyle const loPointStyle;
};
// 1 -> 1 map of styles ( some dubious choices in there though )
diff --git a/vbahelper/source/msforms/vbacontrols.cxx b/vbahelper/source/msforms/vbacontrols.cxx
index be3a5dc82b61..01abc34f67dd 100644
--- a/vbahelper/source/msforms/vbacontrols.cxx
+++ b/vbahelper/source/msforms/vbacontrols.cxx
@@ -148,8 +148,8 @@ class ControlsEnumWrapper : public EnumerationHelper_BASE
uno::Reference<container::XIndexAccess > m_xIndexAccess;
uno::Reference<awt::XControl > m_xDlg;
uno::Reference< frame::XModel > m_xModel;
- double mfOffsetX;
- double mfOffsetY;
+ double const mfOffsetX;
+ double const mfOffsetY;
sal_Int32 nIndex;
public:
diff --git a/vbahelper/source/msforms/vbacontrols.hxx b/vbahelper/source/msforms/vbacontrols.hxx
index 1e9d95042633..4f1b01c6876c 100644
--- a/vbahelper/source/msforms/vbacontrols.hxx
+++ b/vbahelper/source/msforms/vbacontrols.hxx
@@ -54,8 +54,8 @@ public:
private:
css::uno::Reference< css::awt::XControl > mxDialog;
css::uno::Reference< css::frame::XModel > mxModel;
- double mfOffsetX;
- double mfOffsetY;
+ double const mfOffsetX;
+ double const mfOffsetY;
};
#endif // INCLUDED_VBAHELPER_SOURCE_MSFORMS_VBACONTROLS_HXX
diff --git a/vbahelper/source/msforms/vbalistcontrolhelper.cxx b/vbahelper/source/msforms/vbalistcontrolhelper.cxx
index 308c0934ece5..9f72bda981c1 100644
--- a/vbahelper/source/msforms/vbalistcontrolhelper.cxx
+++ b/vbahelper/source/msforms/vbalistcontrolhelper.cxx
@@ -29,8 +29,8 @@ class ListPropListener : public PropListener
{
private:
uno::Reference< beans::XPropertySet > m_xProps;
- uno::Any m_pvargIndex;
- uno::Any m_pvarColumn;
+ uno::Any const m_pvargIndex;
+ uno::Any const m_pvarColumn;
public:
ListPropListener( const uno::Reference< beans::XPropertySet >& xProps, const uno::Any& pvargIndex, const uno::Any& pvarColumn );
diff --git a/vbahelper/source/msforms/vbamultipage.cxx b/vbahelper/source/msforms/vbamultipage.cxx
index 89282b4b1249..f3b67a57e987 100644
--- a/vbahelper/source/msforms/vbamultipage.cxx
+++ b/vbahelper/source/msforms/vbamultipage.cxx
@@ -29,7 +29,7 @@ const OUString SVALUE( "MultiPageValue" );
class PagesImpl : public cppu::WeakImplHelper< container::XIndexAccess >
{
- sal_Int32 mnPages;
+ sal_Int32 const mnPages;
public:
explicit PagesImpl( sal_Int32 nPages ) : mnPages( nPages ) {}
virtual ::sal_Int32 SAL_CALL getCount() override { return mnPages; }
diff --git a/vbahelper/source/msforms/vbatextbox.hxx b/vbahelper/source/msforms/vbatextbox.hxx
index 8081471ba118..54d10999da12 100644
--- a/vbahelper/source/msforms/vbatextbox.hxx
+++ b/vbahelper/source/msforms/vbatextbox.hxx
@@ -29,7 +29,7 @@ typedef cppu::ImplInheritanceHelper< ScVbaControl, ov::msforms::XTextBox, css::s
class ScVbaTextBox : public TextBoxImpl_BASE
{
- bool mbDialog;
+ bool const mbDialog;
public:
ScVbaTextBox( const css::uno::Reference< ov::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::uno::XInterface >& xControl, const css::uno::Reference< css::frame::XModel >& xModel, ov::AbstractGeometryAttributes* pGeomHelper, bool bDialog = false );
// Attributes
diff --git a/vbahelper/source/vbahelper/vbacolorformat.hxx b/vbahelper/source/vbahelper/vbacolorformat.hxx
index 9504e4ef3789..d1573a0f0b5d 100644
--- a/vbahelper/source/vbahelper/vbacolorformat.hxx
+++ b/vbahelper/source/vbahelper/vbacolorformat.hxx
@@ -95,7 +95,7 @@ class ScVbaColorFormat : public ScVbaColorFormat_BASE
private:
css::uno::Reference< css::beans::XPropertySet > m_xPropertySet;
ScVbaFillFormat *m_pFillFormat;
- sal_Int16 m_nColorFormatType;
+ sal_Int16 const m_nColorFormatType;
sal_Int32 m_nFillFormatBackColor;
protected:
virtual OUString getServiceImplName() override;
diff --git a/vbahelper/source/vbahelper/vbacommandbar.hxx b/vbahelper/source/vbahelper/vbacommandbar.hxx
index 46e273b207fd..91a0fe6f0144 100644
--- a/vbahelper/source/vbahelper/vbacommandbar.hxx
+++ b/vbahelper/source/vbahelper/vbacommandbar.hxx
@@ -35,8 +35,8 @@ class ScVbaCommandBar : public CommandBar_BASE
private:
VbaCommandBarHelperRef pCBarHelper;
css::uno::Reference< css::container::XIndexAccess > m_xBarSettings;
- OUString m_sResourceUrl;
- bool m_bIsMenu;
+ OUString const m_sResourceUrl;
+ bool const m_bIsMenu;
public:
/// @throws css::uno::RuntimeException
diff --git a/vbahelper/source/vbahelper/vbacommandbarcontrol.hxx b/vbahelper/source/vbahelper/vbacommandbarcontrol.hxx
index 348518b5ba2e..700868e9fe5a 100644
--- a/vbahelper/source/vbahelper/vbacommandbarcontrol.hxx
+++ b/vbahelper/source/vbahelper/vbacommandbarcontrol.hxx
@@ -34,7 +34,7 @@ class ScVbaCommandBarControl : public CommandBarControl_BASE
{
protected:
VbaCommandBarHelperRef pCBarHelper;
- OUString m_sResourceUrl;
+ OUString const m_sResourceUrl;
css::uno::Reference< css::container::XIndexAccess > m_xCurrentSettings;
css::uno::Reference< css::container::XIndexAccess > m_xBarSettings;
css::uno::Sequence< css::beans::PropertyValue > m_aPropertyValues;
diff --git a/vbahelper/source/vbahelper/vbacommandbarcontrols.hxx b/vbahelper/source/vbahelper/vbacommandbarcontrols.hxx
index aae4de66c891..f82651e9c96c 100644
--- a/vbahelper/source/vbahelper/vbacommandbarcontrols.hxx
+++ b/vbahelper/source/vbahelper/vbacommandbarcontrols.hxx
@@ -32,7 +32,7 @@ class ScVbaCommandBarControls : public CommandBarControls_BASE
private:
VbaCommandBarHelperRef pCBarHelper;
css::uno::Reference< css::container::XIndexAccess > m_xBarSettings;
- OUString m_sResourceUrl;
+ OUString const m_sResourceUrl;
bool m_bIsMenu;
static css::uno::Sequence< css::beans::PropertyValue > CreateMenuItemData( const OUString& sCommandURL,