summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/qa/extras/swmodeltestbase.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/qa/extras/swmodeltestbase.hxx b/sw/qa/extras/swmodeltestbase.hxx
index 8792eb3a733d..39e41da9d768 100644
--- a/sw/qa/extras/swmodeltestbase.hxx
+++ b/sw/qa/extras/swmodeltestbase.hxx
@@ -147,7 +147,7 @@ protected:
T getProperty( uno::Any obj, const rtl::OUString& name ) const
{
uno::Reference< beans::XPropertySet > properties( obj, uno::UNO_QUERY );
- T data;
+ T data = T();
properties->getPropertyValue( name ) >>= data;
return data;
}
@@ -156,7 +156,7 @@ protected:
T getProperty( uno::Reference< uno::XInterface > obj, const rtl::OUString& name ) const
{
uno::Reference< beans::XPropertySet > properties( obj, uno::UNO_QUERY );
- T data;
+ T data = T();
properties->getPropertyValue( name ) >>= data;
return data;
}