summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-02-18 15:40:25 +0100
committerStephan Bergmann <sbergman@redhat.com>2021-02-18 19:01:14 +0100
commit4adf4e0a5518f6895ca188c7b03ac430a53571e8 (patch)
tree1b5a4a332d54363cdd418abd89789e42434fc793 /extensions
parent22cc13ae083c8c092c657003c27a71a3ab5fea95 (diff)
loplugin:referencecasting (--enable-extension-update)
Change-Id: I658aa527d426c28fc19132c2583429c4b3de816a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111126 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/update/check/updatecheckjob.cxx2
-rw-r--r--extensions/source/update/check/updateprotocol.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/update/check/updatecheckjob.cxx b/extensions/source/update/check/updatecheckjob.cxx
index 977e7fbaa12f..82d2f7439ba2 100644
--- a/extensions/source/update/check/updatecheckjob.cxx
+++ b/extensions/source/update/check/updatecheckjob.cxx
@@ -314,7 +314,7 @@ extensions_update_UpdateCheckJob_get_implementation(
css::uno::Reference<css::frame::XDesktop2> desktop(
css::frame::Desktop::create(context));
rtl::Reference<UpdateCheckJob> job(new UpdateCheckJob(context, desktop));
- desktop->addTerminateListener(job.get());
+ desktop->addTerminateListener(job);
return cppu::acquire(job.get());
}
diff --git a/extensions/source/update/check/updateprotocol.cxx b/extensions/source/update/check/updateprotocol.cxx
index 4417565c4752..a2da6a82c716 100644
--- a/extensions/source/update/check/updateprotocol.cxx
+++ b/extensions/source/update/check/updateprotocol.cxx
@@ -144,7 +144,7 @@ checkForUpdates(
if( aUpdateInfoEnumeration->nextElement() >>= aEntry )
{
- uno::Reference< xml::dom::XNode > xNode( aEntry.UpdateDocument.get() );
+ uno::Reference< xml::dom::XNode > xNode( aEntry.UpdateDocument );
uno::Reference< xml::dom::XNodeList > xNodeList;
try {
xNodeList = xXPath->selectNodeList(xNode, aXPathExpression