summaryrefslogtreecommitdiff
path: root/svtools/source/java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-05 09:49:43 +0200
committerNoel Grandin <noel@peralex.com>2015-11-05 09:59:30 +0200
commit3d96f1ef5556869bb60522c9cfa5c9c6f8db0a18 (patch)
treedd4a4f6f457333ff91660824b817db22c461bf10 /svtools/source/java
parent3fdbf5935e0aff6350e861e868c7e0a12dd1bc8f (diff)
use uno::Reference::set method instead of assignment
Change-Id: I2f8c9cb71a06f7796576509f605796624e654422
Diffstat (limited to 'svtools/source/java')
-rw-r--r--svtools/source/java/javacontext.cxx3
-rw-r--r--svtools/source/java/javainteractionhandler.cxx4
2 files changed, 3 insertions, 4 deletions
diff --git a/svtools/source/java/javacontext.cxx b/svtools/source/java/javacontext.cxx
index 759570d3f3bd..3830ee557555 100644
--- a/svtools/source/java/javacontext.cxx
+++ b/svtools/source/java/javacontext.cxx
@@ -70,8 +70,7 @@ Any SAL_CALL JavaContext::getValueByName( const OUString& Name) throw (RuntimeEx
{
osl::MutexGuard aGuard(osl::Mutex::getGlobalMutex());
if (!m_xHandler.is())
- m_xHandler = Reference< XInteractionHandler >(
- new JavaInteractionHandler(m_bShowErrorsOnce));
+ m_xHandler.set( new JavaInteractionHandler(m_bShowErrorsOnce));
}
retVal = makeAny(m_xHandler);
diff --git a/svtools/source/java/javainteractionhandler.cxx b/svtools/source/java/javainteractionhandler.cxx
index 82a113371abe..2f9bf8f87ecc 100644
--- a/svtools/source/java/javainteractionhandler.cxx
+++ b/svtools/source/java/javainteractionhandler.cxx
@@ -94,14 +94,14 @@ void SAL_CALL JavaInteractionHandler::handle( const Reference< XInteractionReque
for ( i = 0; i < aSeqCont.getLength(); i++ )
{
- abort = Reference< XInteractionAbort>::query( aSeqCont[i]);
+ abort.set( aSeqCont[i], UNO_QUERY );
if ( abort.is() )
break;
}
for ( i= 0; i < aSeqCont.getLength(); i++)
{
- retry= Reference<XInteractionRetry>::query( aSeqCont[i]);
+ retry.set( aSeqCont[i], UNO_QUERY );
if ( retry.is() )
break;
}