summaryrefslogtreecommitdiff
path: root/dbaccess/qa
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-10-28 14:36:38 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2024-10-29 09:11:37 +0100
commita38a22c7e55bf076f96589492e8f42f6c2f7639c (patch)
treeec004d872c3db79dee25c126735e15e12f32ded0 /dbaccess/qa
parent25a5172071e1eacb9ea124f17434ce2b1e039b33 (diff)
UnoApiTest: rename load to loadFromURL and use it everywhere
Change-Id: Ie67eebec74f783fa0c29acfb23bb83bc582812b2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175724 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
Diffstat (limited to 'dbaccess/qa')
-rw-r--r--dbaccess/qa/extras/dialog-save.cxx2
-rw-r--r--dbaccess/qa/extras/empty-stdlib-save.cxx2
-rw-r--r--dbaccess/qa/extras/nolib-save.cxx2
-rw-r--r--dbaccess/qa/extras/rowsetclones.cxx2
-rw-r--r--dbaccess/qa/unit/dbtest_base.cxx4
5 files changed, 6 insertions, 6 deletions
diff --git a/dbaccess/qa/extras/dialog-save.cxx b/dbaccess/qa/extras/dialog-save.cxx
index 56093548914a..02a706e7d7e3 100644
--- a/dbaccess/qa/extras/dialog-save.cxx
+++ b/dbaccess/qa/extras/dialog-save.cxx
@@ -44,7 +44,7 @@ void DialogSaveTest::test()
{
createTempCopy(u"testDialogSave.odb");
{
- mxComponent = loadFromDesktop(maTempFile.GetURL());
+ loadFromURL(maTempFile.GetURL());
uno::Reference< frame::XStorable > xDocStorable(mxComponent, UNO_QUERY_THROW);
uno::Reference< document::XEmbeddedScripts > xDocScr(mxComponent, UNO_QUERY_THROW);
uno::Reference< script::XStorageBasedLibraryContainer > xStorBasLib(xDocScr->getBasicLibraries());
diff --git a/dbaccess/qa/extras/empty-stdlib-save.cxx b/dbaccess/qa/extras/empty-stdlib-save.cxx
index 67550492c258..708ce86c9eed 100644
--- a/dbaccess/qa/extras/empty-stdlib-save.cxx
+++ b/dbaccess/qa/extras/empty-stdlib-save.cxx
@@ -42,7 +42,7 @@ void DialogSaveTest::test()
{
createTempCopy(u"testDialogSave.odb");
{
- mxComponent = loadFromDesktop(maTempFile.GetURL());
+ loadFromURL(maTempFile.GetURL());
uno::Reference< frame::XStorable > xDocStorable(mxComponent, UNO_QUERY_THROW);
uno::Reference< document::XEmbeddedScripts > xDocScr(mxComponent, UNO_QUERY_THROW);
uno::Reference< script::XStorageBasedLibraryContainer > xStorBasLib(xDocScr->getBasicLibraries());
diff --git a/dbaccess/qa/extras/nolib-save.cxx b/dbaccess/qa/extras/nolib-save.cxx
index 89dc9f036dff..2ad68714528e 100644
--- a/dbaccess/qa/extras/nolib-save.cxx
+++ b/dbaccess/qa/extras/nolib-save.cxx
@@ -42,7 +42,7 @@ void DialogSaveTest::test()
{
createTempCopy(u"testDialogSave.odb");
{
- mxComponent = loadFromDesktop(maTempFile.GetURL());
+ loadFromURL(maTempFile.GetURL());
uno::Reference< frame::XStorable > xDocStorable(mxComponent, UNO_QUERY_THROW);
uno::Reference< document::XEmbeddedScripts > xDocScr(mxComponent, UNO_QUERY_THROW);
uno::Reference< script::XStorageBasedLibraryContainer > xStorBasLib(xDocScr->getBasicLibraries());
diff --git a/dbaccess/qa/extras/rowsetclones.cxx b/dbaccess/qa/extras/rowsetclones.cxx
index 053b58199a78..8ffaeea202b2 100644
--- a/dbaccess/qa/extras/rowsetclones.cxx
+++ b/dbaccess/qa/extras/rowsetclones.cxx
@@ -47,7 +47,7 @@ RowSetClones::RowSetClones()
void RowSetClones::test()
{
createTempCopy(u"RowSetClones.odb");
- mxComponent = loadFromDesktop(maTempFile.GetURL());
+ loadFromURL(maTempFile.GetURL());
uno::Reference< XOfficeDatabaseDocument > xDocument(mxComponent, UNO_QUERY_THROW);
diff --git a/dbaccess/qa/unit/dbtest_base.cxx b/dbaccess/qa/unit/dbtest_base.cxx
index 0208649906ad..86197b89cfb4 100644
--- a/dbaccess/qa/unit/dbtest_base.cxx
+++ b/dbaccess/qa/unit/dbtest_base.cxx
@@ -51,7 +51,7 @@ public:
};
uno::Reference<XOfficeDatabaseDocument> DBTestBase::getDocumentForUrl(OUString const & url) {
- mxComponent = loadFromDesktop(url);
+ loadFromURL(url);
uno::Reference< XOfficeDatabaseDocument > xDocument(mxComponent, UNO_QUERY_THROW);
return xDocument;
}
@@ -81,7 +81,7 @@ void DBTestBase::createDBDocument(const OUString& rDriverURL)
xStorable->storeAsURL(maTempFile.GetURL(), uno::Sequence< beans::PropertyValue >());
- mxComponent = loadFromDesktop(maTempFile.GetURL());
+ loadFromURL(maTempFile.GetURL());
CPPUNIT_ASSERT(mxComponent);
}