summaryrefslogtreecommitdiff
path: root/xmlhelp/source/treeview
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-05 13:26:24 +0200
committerNoel Grandin <noel@peralex.com>2015-11-05 13:32:17 +0200
commit9e8ff13eb2405f7e3dcb4f90cb38e9e4b1da2bd5 (patch)
treeea4cd1922080d73b82a5b4bd4796d6190430f3fa /xmlhelp/source/treeview
parent281296330735158d6265e0b146b5d5301f6e610e (diff)
use uno::Reference::set method instead of assignment
Change-Id: I60e52ef2abc3107ba77e81811dfe1bffbfd77218
Diffstat (limited to 'xmlhelp/source/treeview')
-rw-r--r--xmlhelp/source/treeview/tvfactory.cxx6
-rw-r--r--xmlhelp/source/treeview/tvread.cxx2
2 files changed, 3 insertions, 5 deletions
diff --git a/xmlhelp/source/treeview/tvfactory.cxx b/xmlhelp/source/treeview/tvfactory.cxx
index 81881f828ca2..abb4d9b0397c 100644
--- a/xmlhelp/source/treeview/tvfactory.cxx
+++ b/xmlhelp/source/treeview/tvfactory.cxx
@@ -86,17 +86,15 @@ TVFactory::createInstance(
Reference< XInterface > SAL_CALL
TVFactory::createInstanceWithArguments(
- const OUString& ServiceSpecifier,
+ const OUString& /*ServiceSpecifier*/,
const Sequence< Any >& Arguments )
throw( Exception,
RuntimeException, std::exception )
{
- (void)ServiceSpecifier;
-
if( ! m_xHDS.is() )
{
cppu::OWeakObject* p = new TVChildTarget( m_xContext );
- m_xHDS = Reference< XInterface >( p );
+ m_xHDS.set( p );
}
Reference< XInterface > ret = m_xHDS;
diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx
index 4cb3e405f30d..28ad1522c6b7 100644
--- a/xmlhelp/source/treeview/tvread.cxx
+++ b/xmlhelp/source/treeview/tvread.cxx
@@ -1142,7 +1142,7 @@ OUString TreeFileIterator::expandURL( const OUString& aURL )
Reference< uri::XUriReference > uriRef;
for (;;)
{
- uriRef = Reference< uri::XUriReference >( xFac->parse( aRetURL ), UNO_QUERY );
+ uriRef.set( xFac->parse( aRetURL ), UNO_QUERY );
if ( uriRef.is() )
{
Reference < uri::XVndSunStarExpandUrl > sxUri( uriRef, UNO_QUERY );