summaryrefslogtreecommitdiff
path: root/vcl/source/app
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-09-13 13:08:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-14 11:40:32 +0200
commit59887868da3499c68d5f259cfa48178354397448 (patch)
treefea3595f08d0a2ff07070c34bc2b94bbb7a446e1 /vcl/source/app
parentafb0dfc41ebb0a6a96ae31c122c7f97743dc7486 (diff)
loplugin:constfields in vcl
Change-Id: I1072642be4fdfa720e61f2d7bad3c2701eb81610 Reviewed-on: https://gerrit.libreoffice.org/60430 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/app')
-rw-r--r--vcl/source/app/salvtables.cxx6
-rw-r--r--vcl/source/app/svapp.cxx2
-rw-r--r--vcl/source/app/svmain.cxx4
3 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index f32c36af335d..473cc6725dde 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -186,7 +186,7 @@ private:
DECL_LINK(FocusInListener, VclWindowEvent&, void);
DECL_LINK(FocusOutListener, VclWindowEvent&, void);
- bool m_bTakeOwnership;
+ bool const m_bTakeOwnership;
public:
SalInstanceWidget(vcl::Window* pWidget, bool bTakeOwnership)
@@ -459,7 +459,7 @@ class SalInstanceMenu : public weld::Menu
private:
VclPtr<PopupMenu> m_xMenu;
- bool m_bTakeOwnership;
+ bool const m_bTakeOwnership;
public:
SalInstanceMenu(PopupMenu* pMenu, bool bTakeOwnership)
@@ -997,7 +997,7 @@ class SalInstanceButton : public SalInstanceContainer, public virtual weld::Butt
{
private:
VclPtr<::Button> m_xButton;
- Link<::Button*,void> m_aOldClickHdl;
+ Link<::Button*,void> const m_aOldClickHdl;
DECL_LINK(ClickHdl, ::Button*, void);
public:
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index 565f349072fb..d4a0ae409acf 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -155,7 +155,7 @@ extern "C" {
struct ImplPostEventData
{
- VclEventId mnEvent;
+ VclEventId const mnEvent;
VclPtr<vcl::Window> mpWin;
ImplSVEvent * mnEventId;
KeyEvent maKeyEvent;
diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx
index b4cfa736792c..ca26d1451613 100644
--- a/vcl/source/app/svmain.cxx
+++ b/vcl/source/app/svmain.cxx
@@ -599,8 +599,8 @@ void DeInitVCL()
// only one call is allowed
struct WorkerThreadData
{
- oslWorkerFunction pWorker;
- void * pThreadData;
+ oslWorkerFunction const pWorker;
+ void * const pThreadData;
WorkerThreadData( oslWorkerFunction pWorker_, void * pThreadData_ )
: pWorker( pWorker_ )
, pThreadData( pThreadData_ )