From 12dce07aec980562fa449fa1884e0e8379d680fb Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 19 Jul 2018 16:28:37 +0200 Subject: 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 --- comphelper/qa/container/comphelper_ifcontainer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'comphelper/qa') 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++; } -- cgit