[Libreoffice-commits] core.git: extensions/source

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Thu Feb 18 18:02:00 UTC 2021


 extensions/source/update/check/updatecheckjob.cxx |    2 +-
 extensions/source/update/check/updateprotocol.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 4adf4e0a5518f6895ca188c7b03ac430a53571e8
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Feb 18 15:40:25 2021 +0100
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Feb 18 19:01:14 2021 +0100

    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 at redhat.com>

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


More information about the Libreoffice-commits mailing list