summaryrefslogtreecommitdiff
path: root/sc/qa/unit/dataproviders_test.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-02-08 22:49:55 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2018-07-06 02:14:40 +0200
commit3f66d987ce3a46eb836f2c11bbaf360bd6195e27 (patch)
treed3a3992c97344b6e9015dd6d164a8471b4b47ff1 /sc/qa/unit/dataproviders_test.cxx
parenteac72845f5c9aac0fb346b2d48cee697006c057b (diff)
add a selection for the DB range to Dataprovider dlg
Change-Id: I02c63b46e21cd8d04e6b515e2cbbee08743d5657 Reviewed-on: https://gerrit.libreoffice.org/49459 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/qa/unit/dataproviders_test.cxx')
-rw-r--r--sc/qa/unit/dataproviders_test.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/qa/unit/dataproviders_test.cxx b/sc/qa/unit/dataproviders_test.cxx
index d0df69c96d5c..1960fa59eecf 100644
--- a/sc/qa/unit/dataproviders_test.cxx
+++ b/sc/qa/unit/dataproviders_test.cxx
@@ -50,7 +50,7 @@ void ScDataProvidersTest::testCSVImport()
OUString aFileURL;
createFileURL("test1.", "csv", aFileURL);
sc::ExternalDataSource aDataSource(aFileURL, "org.libreoffice.calc.csv", m_pDoc);
- aDataSource.setDBData(pDBData);
+ aDataSource.setDBData(pDBData->GetName());
m_pDoc->GetExternalDataMapper().insertDataSource(aDataSource);
@@ -78,7 +78,7 @@ void ScDataProvidersTest::testDataLargerThanDB()
OUString aFileURL;
createFileURL("test1.", "csv", aFileURL);
sc::ExternalDataSource aDataSource(aFileURL, "org.libreoffice.calc.csv", m_pDoc);
- aDataSource.setDBData(pDBData);
+ aDataSource.setDBData(pDBData->GetName());
m_pDoc->GetExternalDataMapper().insertDataSource(aDataSource);
@@ -107,7 +107,7 @@ void ScDataProvidersTest::testHTMLImport()
createFileURL("test1.", "html", aFileURL);
sc::ExternalDataSource aDataSource(aFileURL, "org.libreoffice.calc.html", m_pDoc);
aDataSource.setID("//table");
- aDataSource.setDBData(pDBData);
+ aDataSource.setDBData(pDBData->GetName());
m_pDoc->GetExternalDataMapper().insertDataSource(aDataSource);