summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-04 14:38:56 +0200
committerNoel Grandin <noel@peralex.com>2015-11-04 14:42:23 +0200
commit5ced1a6e42ff7e2425a9e1c374eb25295091b26d (patch)
treeb7649b7942cd494bbbbeaa6cdbee93ed492d8e7b /sax
parent8f93d4a159e599fe7191e7f7b8e52e2775fefdf5 (diff)
use uno::Reference::set method instead of assignment
Change-Id: I1c7240fe2e2b5eb825f028ca7502e5ba8793046b
Diffstat (limited to 'sax')
-rw-r--r--sax/source/expatwrap/sax_expat.cxx2
-rw-r--r--sax/test/saxdemo.cxx4
-rw-r--r--sax/test/testcomponent.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/sax/source/expatwrap/sax_expat.cxx b/sax/source/expatwrap/sax_expat.cxx
index 42c610dda54e..51f72f7b5c64 100644
--- a/sax/source/expatwrap/sax_expat.cxx
+++ b/sax/source/expatwrap/sax_expat.cxx
@@ -371,7 +371,7 @@ SaxExpatParser::SaxExpatParser( )
m_pImpl = new SaxExpatParser_Impl;
LocatorImpl *pLoc = new LocatorImpl( m_pImpl );
- m_pImpl->rDocumentLocator = css::uno::Reference< XLocator > ( pLoc );
+ m_pImpl->rDocumentLocator.set( pLoc );
// Performance-improvement; handing out the same object with every call of
// the startElement callback is allowed (see sax-specification):
diff --git a/sax/test/saxdemo.cxx b/sax/test/saxdemo.cxx
index 9da50fa40922..3f7d21c85dd0 100644
--- a/sax/test/saxdemo.cxx
+++ b/sax/test/saxdemo.cxx
@@ -118,7 +118,7 @@ Reference< XInputStream > createStreamFromFile(
Sequence<sal_Int8> seqIn(nLength);
fread( seqIn.getArray() , nLength , 1 , f );
- r = Reference< XInputStream > ( new OInputStream( seqIn ) );
+ r.set( new OInputStream( seqIn ) );
fclose( f );
}
return r;
@@ -500,7 +500,7 @@ int main (int argc, char **argv)
{
// Create registration service
Reference < XInterface > x = xSMgr->createInstance( "com.sun.star.registry.ImplementationRegistration" );
- xReg = Reference< XImplementationRegistration > ( x , UNO_QUERY );
+ xReg.set( x , UNO_QUERY );
}
catch( Exception & ) {
printf( "Couldn't create ImplementationRegistration service\n" );
diff --git a/sax/test/testcomponent.cxx b/sax/test/testcomponent.cxx
index e498b2290908..339ee621f290 100644
--- a/sax/test/testcomponent.cxx
+++ b/sax/test/testcomponent.cxx
@@ -69,7 +69,7 @@ int main (int argc, char **argv)
{
// Create registration service
Reference < XInterface > x = xSMgr->createInstance( "com.sun.star.registry.ImplementationRegistration" );
- xReg = Reference< XImplementationRegistration > ( x , UNO_QUERY );
+ xReg.set( x , UNO_QUERY );
}
catch (const Exception&)
{