diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-04 14:38:56 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-04 14:42:23 +0200 |
commit | 5ced1a6e42ff7e2425a9e1c374eb25295091b26d (patch) | |
tree | b7649b7942cd494bbbbeaa6cdbee93ed492d8e7b /sax/test | |
parent | 8f93d4a159e599fe7191e7f7b8e52e2775fefdf5 (diff) |
use uno::Reference::set method instead of assignment
Change-Id: I1c7240fe2e2b5eb825f028ca7502e5ba8793046b
Diffstat (limited to 'sax/test')
-rw-r--r-- | sax/test/saxdemo.cxx | 4 | ||||
-rw-r--r-- | sax/test/testcomponent.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
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&) { |