summaryrefslogtreecommitdiff
path: root/comphelper/qa
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-19 16:28:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-20 14:12:57 +0200
commit12dce07aec980562fa449fa1884e0e8379d680fb (patch)
tree77bfe25b147d33bccd8f3dfc656f533d547ab3ae /comphelper/qa
parentfd0348d42568d5f32fb03e1e13055db5938d5f35 (diff)
loplugin:unusedfields - look for fields that can be const, in comphelper
idea from tml. Extend the unusedfields plugin to find fields that are only assigned in the constructor. Change-Id: I258d3581afbe651d53ce730c9ba27a4598cd9248 Reviewed-on: https://gerrit.libreoffice.org/57733 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'comphelper/qa')
-rw-r--r--comphelper/qa/container/comphelper_ifcontainer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/qa/container/comphelper_ifcontainer.cxx b/comphelper/qa/container/comphelper_ifcontainer.cxx
index cf38b4e45bfe..26a2bd9992d8 100644
--- a/comphelper/qa/container/comphelper_ifcontainer.cxx
+++ b/comphelper/qa/container/comphelper_ifcontainer.cxx
@@ -42,7 +42,7 @@ struct ContainerStats {
class ContainerListener : public cppu::WeakImplHelper< XEventListener >
{
- ContainerStats *m_pStats;
+ ContainerStats * const m_pStats;
public:
explicit ContainerListener(ContainerStats *pStats)
: m_pStats(pStats) { m_pStats->m_nAlive++; }