From 8fec9e7e4ca97e14551a737583226f89b0c6eecd Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 30 May 2016 15:14:03 +0200 Subject: Some clean up of uses of css::uno::Any::setValue Change-Id: I04e8aef35a6083b61d775c8eb3f96757da2b31bd --- cppu/qa/test_reference.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'cppu') 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::get()) { - Reference< XInterface > ref( static_cast< XInterface * >( this ) ); - aInterface.setValue( &ref, _type ); + return css::uno::makeAny>( + this); } else if (_type == cppu::UnoType::get()) { - Reference< Interface1 > ref( this ); - aInterface.setValue( &ref, _type ); + return css::uno::makeAny>(this); } return Any(); -- cgit