sc/qa/unit/helper/qahelper.cxx | 2 +- sw/qa/unit/swmodeltestbase.cxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
New commits: commit 208f69acb5a09286cec6b49bd963fc894ffc2f81 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Tue Nov 29 10:23:22 2022 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Tue Nov 29 11:41:45 2022 +0100 sw, sc: UNO_QUERY -> UNO_QUERY_THROW in a few places see https://gerrit.libreoffice.org/c/core/+/142581 Change-Id: Idcfba338718bf583739f4469299663e782dbe57c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143433 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sc/qa/unit/helper/qahelper.cxx b/sc/qa/unit/helper/qahelper.cxx index 27b3c49ada6f..336fd5754a29 100644 --- a/sc/qa/unit/helper/qahelper.cxx +++ b/sc/qa/unit/helper/qahelper.cxx @@ -476,7 +476,7 @@ void ScModelTestBase::createScDoc(const char* pName, const char* pPassword) else loadFromURL(OUString::createFromAscii(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.sheet.SpreadsheetDocument")); } 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")); }