diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-05-30 15:14:03 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-05-30 15:14:03 +0200 |
commit | 8fec9e7e4ca97e14551a737583226f89b0c6eecd (patch) | |
tree | 97b0c9e68fd2c3ad75f9b7d52a76a134522b8350 /cppu | |
parent | e630df7853a62225cd77fc4262689ef5607d2907 (diff) |
Some clean up of uses of css::uno::Any::setValue
Change-Id: I04e8aef35a6083b61d775c8eb3f96757da2b31bd
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/qa/test_reference.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cppu/qa/test_reference.cxx b/cppu/qa/test_reference.cxx index c04b8b1e010f..df57eab424da 100644 --- a/cppu/qa/test_reference.cxx +++ b/cppu/qa/test_reference.cxx @@ -52,16 +52,14 @@ public: virtual Any SAL_CALL queryInterface(const Type & _type) throw (RuntimeException, std::exception) override { - Any aInterface; if (_type == cppu::UnoType<XInterface>::get()) { - Reference< XInterface > ref( static_cast< XInterface * >( this ) ); - aInterface.setValue( &ref, _type ); + return css::uno::makeAny<css::uno::Reference<css::uno::XInterface>>( + this); } else if (_type == cppu::UnoType<Interface1>::get()) { - Reference< Interface1 > ref( this ); - aInterface.setValue( &ref, _type ); + return css::uno::makeAny<css::uno::Reference<Interface1>>(this); } return Any(); |