diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-20 18:26:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-21 08:49:56 +0200 |
commit | 7272951c121735a7350fa70840b255b7ef831f1a (patch) | |
tree | 52033c5b70c6c2c24ec5c507b7d38eca257356a5 /unotools | |
parent | d943b42214321c630147176210733399c57e6f19 (diff) |
loplugin:referencecasting in unotools..uui
Change-Id: Ia2c991591e65deb00710ab7a5b73bc42ae6b1b46
Reviewed-on: https://gerrit.libreoffice.org/76031
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/configitem.cxx | 2 | ||||
-rw-r--r-- | unotools/source/misc/mediadescriptor.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
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(); |