summaryrefslogtreecommitdiff
path: root/sw/qa/extras/inc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-10-10 14:26:06 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-10-10 14:26:06 +0200
commitacbe968ef0d40fb90e0f839e3e2702a43a0ae703 (patch)
treee06f929bb96e8cdd049a80132bed35124edaae61 /sw/qa/extras/inc
parent668c627eb4e66208738d5acdecbcad106efa8252 (diff)
Minor improvements
Change-Id: I1dfe57368f438087d6e6131d36128db4438792eb
Diffstat (limited to 'sw/qa/extras/inc')
-rw-r--r--sw/qa/extras/inc/swmodeltestbase.hxx8
1 files 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;