summaryrefslogtreecommitdiff
path: root/codemaker
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-11-08 13:54:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-11-08 17:33:29 +0100
commit5fe9b3df62aebe68eed2daa4625b6f360b925a74 (patch)
tree85624a75de624175c2f95c34342ff1a2b14a43e2 /codemaker
parent3f691b4a160b2ed1bb503c5b52e925bfa974e1e5 (diff)
loplugin:reftotemp in codemaker..connectivity
Change-Id: I9da2976410f7c4da8ab0d85150fc87f2b3df9e0d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176275 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'codemaker')
-rw-r--r--codemaker/source/netmaker/netproduce.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/codemaker/source/netmaker/netproduce.cxx b/codemaker/source/netmaker/netproduce.cxx
index b11569c2130b..a8ac33f6d991 100644
--- a/codemaker/source/netmaker/netproduce.cxx
+++ b/codemaker/source/netmaker/netproduce.cxx
@@ -948,7 +948,7 @@ void NetProducer::produceService(
if (ctor.defaultConstructor)
{
- const auto& returnType(getNetName(entity->getBase()));
+ const auto returnType(getNetName(entity->getBase()));
file.beginLine()
.append("public static ")
@@ -1009,7 +1009,7 @@ void NetProducer::produceService(
}
else
{
- const auto& returnType(getNetName(entity->getBase()));
+ const auto returnType(getNetName(entity->getBase()));
const auto* restParam = !ctor.parameters.empty() && ctor.parameters.front().rest
? &ctor.parameters.front()
: nullptr;