diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-05 12:42:10 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-05 12:42:42 +0200 |
commit | 94268513eeded3952972d7efe0a9bc689605421b (patch) | |
tree | 5994adbdba4ca18b8c326e70db2a73a18527caa0 /uui | |
parent | c89ba1dedc511ec17df1e35f8e0696bc20121491 (diff) |
use uno::Reference::set method instead of assignment
Change-Id: Id57ccff7ea6cf5c7053b51268b1190f5459bb357
Diffstat (limited to 'uui')
-rw-r--r-- | uui/source/passwordcontainer.cxx | 4 | ||||
-rw-r--r-- | uui/source/unknownauthdlg.cxx | 6 |
2 files changed, 3 insertions, 7 deletions
diff --git a/uui/source/passwordcontainer.cxx b/uui/source/passwordcontainer.cxx index 08a8b686b307..285f7b8a6877 100644 --- a/uui/source/passwordcontainer.cxx +++ b/uui/source/passwordcontainer.cxx @@ -382,9 +382,7 @@ PasswordContainerInteractionHandler::handleInteractionRequest( for ( sal_Int32 i = 0; i < rContinuations.getLength(); ++i ) { - xSupplyAuthentication - = uno::Reference< ucb::XInteractionSupplyAuthentication >( - rContinuations[i], uno::UNO_QUERY ); + xSupplyAuthentication.set( rContinuations[i], uno::UNO_QUERY ); if( xSupplyAuthentication.is() ) break; } diff --git a/uui/source/unknownauthdlg.cxx b/uui/source/unknownauthdlg.cxx index 8d0ac80904df..378b98f45327 100644 --- a/uui/source/unknownauthdlg.cxx +++ b/uui/source/unknownauthdlg.cxx @@ -44,10 +44,8 @@ IMPL_LINK_NOARG_TYPED(UnknownAuthDialog, OKHdl_Impl, Button*, void) IMPL_LINK_NOARG_TYPED(UnknownAuthDialog, ViewCertHdl_Impl, Button*, void) { - uno::Reference< css::security::XDocumentDigitalSignatures > xDocumentDigitalSignatures; - - xDocumentDigitalSignatures = uno::Reference< css::security::XDocumentDigitalSignatures >( - css::security::DocumentDigitalSignatures::createDefault(m_xContext) ); + uno::Reference< css::security::XDocumentDigitalSignatures > xDocumentDigitalSignatures( + css::security::DocumentDigitalSignatures::createDefault(m_xContext) ); xDocumentDigitalSignatures.get()->showCertificate(getCert()); } |