diff options
Diffstat (limited to 'sw/qa/unit')
-rw-r--r-- | sw/qa/unit/swmodeltestbase.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/qa/unit/swmodeltestbase.cxx b/sw/qa/unit/swmodeltestbase.cxx index ca761556b2d7..a8dfc83493f9 100644 --- a/sw/qa/unit/swmodeltestbase.cxx +++ b/sw/qa/unit/swmodeltestbase.cxx @@ -555,7 +555,7 @@ void SwModelTestBase::createSwDoc(const char* pName, const char* pPassword) else load(pName, pPassword); - uno::Reference<lang::XServiceInfo> xServiceInfo(mxComponent, uno::UNO_QUERY); + uno::Reference<lang::XServiceInfo> xServiceInfo(mxComponent, uno::UNO_QUERY_THROW); CPPUNIT_ASSERT(xServiceInfo->supportsService("com.sun.star.text.TextDocument")); } @@ -566,7 +566,7 @@ void SwModelTestBase::createSwWebDoc(const char* pName) else load(pName); - uno::Reference<lang::XServiceInfo> xServiceInfo(mxComponent, uno::UNO_QUERY); + uno::Reference<lang::XServiceInfo> xServiceInfo(mxComponent, uno::UNO_QUERY_THROW); CPPUNIT_ASSERT(xServiceInfo->supportsService("com.sun.star.text.WebDocument")); } @@ -577,7 +577,7 @@ void SwModelTestBase::createSwGlobalDoc(const char* pName) else load(pName); - uno::Reference<lang::XServiceInfo> xServiceInfo(mxComponent, uno::UNO_QUERY); + uno::Reference<lang::XServiceInfo> xServiceInfo(mxComponent, uno::UNO_QUERY_THROW); CPPUNIT_ASSERT(xServiceInfo->supportsService("com.sun.star.text.GlobalDocument")); } |