From 7272951c121735a7350fa70840b255b7ef831f1a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 20 Jul 2019 18:26:07 +0200 Subject: loplugin:referencecasting in unotools..uui Change-Id: Ia2c991591e65deb00710ab7a5b73bc42ae6b1b46 Reviewed-on: https://gerrit.libreoffice.org/76031 Tested-by: Jenkins Reviewed-by: Noel Grandin --- unotools/source/config/configitem.cxx | 2 +- unotools/source/misc/mediadescriptor.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'unotools') diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx index 36cc9b68ed6a..29097d32fd56 100644 --- a/unotools/source/config/configitem.cxx +++ b/unotools/source/config/configitem.cxx @@ -351,7 +351,7 @@ Sequence< sal_Bool > ConfigItem::GetReadOnlyStates(const css::uno::Sequence< OUS } else { - xNode.set( xHierarchyAccess, UNO_QUERY ); + xNode = xHierarchyAccess; } xSet.set(xNode, UNO_QUERY); diff --git a/unotools/source/misc/mediadescriptor.cxx b/unotools/source/misc/mediadescriptor.cxx index 98f27fc5bc37..18df713e52d2 100644 --- a/unotools/source/misc/mediadescriptor.cxx +++ b/unotools/source/misc/mediadescriptor.cxx @@ -365,7 +365,7 @@ bool MediaDescriptor::isStreamReadOnly() const css::uno::Reference< css::ucb::XContent > xContent = getUnpackedValueOrDefault(MediaDescriptor::PROP_UCBCONTENT(), css::uno::Reference< css::ucb::XContent >()); if (xContent.is()) { - css::uno::Reference< css::ucb::XContentIdentifier > xId(xContent->getIdentifier(), css::uno::UNO_QUERY); + css::uno::Reference< css::ucb::XContentIdentifier > xId = xContent->getIdentifier(); OUString aScheme; if (xId.is()) aScheme = xId->getContentProviderScheme(); -- cgit v1.2.3