summaryrefslogtreecommitdiff
path: root/sw/qa/unit
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-11-29 10:23:22 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2022-11-29 11:41:45 +0100
commit208f69acb5a09286cec6b49bd963fc894ffc2f81 (patch)
tree293b2e77c302205b89922eab8528887d4dc644d2 /sw/qa/unit
parentd34036e60c4e7d13feccd089f7749d35d956b358 (diff)
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 <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/qa/unit')
-rw-r--r--sw/qa/unit/swmodeltestbase.cxx6
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"));
}