diff options
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&) { |