summaryrefslogtreecommitdiffstats
path: root/cpputools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-09-30 15:28:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-30 19:00:57 +0200
commit7183b3ba237dc7718501acb512d5ae1c5d0d5f6b (patch)
treeea8b5535f6dbed45f54fa27c8dd492a327644626 /cpputools
parentRelated: tdf#141633 drawing buttons to outputdevice affects later drawing (diff)
downloadcore-7183b3ba237dc7718501acb512d5ae1c5d0d5f6b.tar.gz
core-7183b3ba237dc7718501acb512d5ae1c5d0d5f6b.zip
loplugin:constmethod handle more cases
remove some of the naming limitations, and handle pointer parameters better. I only let the plugin run up till vcl/ Change-Id: Ice916e0157031ab531c47f10778f406b07966251 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122892 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cpputools')
-rw-r--r--cpputools/source/unoexe/unoexe.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpputools/source/unoexe/unoexe.cxx b/cpputools/source/unoexe/unoexe.cxx
index 34be8e964ca8..46d43e344757 100644
--- a/cpputools/source/unoexe/unoexe.cxx
+++ b/cpputools/source/unoexe/unoexe.cxx
@@ -245,7 +245,7 @@ class OInstanceProvider
OUString _aInstanceName;
/// @throws Exception
- inline Reference< XInterface > createInstance();
+ inline Reference< XInterface > createInstance() const;
public:
OInstanceProvider( const Reference< XComponentContext > & xContext,
@@ -267,7 +267,7 @@ public:
}
-inline Reference< XInterface > OInstanceProvider::createInstance()
+inline Reference< XInterface > OInstanceProvider::createInstance() const
{
Reference< XInterface > xRet;
if (!_aImplName.isEmpty()) // manually via loader