From acbe968ef0d40fb90e0f839e3e2702a43a0ae703 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 10 Oct 2013 14:26:06 +0200 Subject: Minor improvements Change-Id: I1dfe57368f438087d6e6131d36128db4438792eb --- sw/qa/extras/inc/swmodeltestbase.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx index 81a4aa2d63fb..29f4dc1a9dc4 100644 --- a/sw/qa/extras/inc/swmodeltestbase.hxx +++ b/sw/qa/extras/inc/swmodeltestbase.hxx @@ -161,18 +161,18 @@ protected: } template< typename T > - T getProperty( uno::Any obj, const OUString& name ) const + T getProperty( const uno::Any& obj, const OUString& name ) const { - uno::Reference< beans::XPropertySet > properties( obj, uno::UNO_QUERY ); + uno::Reference< beans::XPropertySet > properties( obj, uno::UNO_QUERY_THROW ); T data = T(); properties->getPropertyValue( name ) >>= data; return data; } template< typename T > - T getProperty( uno::Reference< uno::XInterface > obj, const OUString& name ) const + T getProperty( const uno::Reference< uno::XInterface >& obj, const OUString& name ) const { - uno::Reference< beans::XPropertySet > properties( obj, uno::UNO_QUERY ); + uno::Reference< beans::XPropertySet > properties( obj, uno::UNO_QUERY_THROW ); T data = T(); properties->getPropertyValue( name ) >>= data; return data; -- cgit v1.2.3