summaryrefslogtreecommitdiff
path: root/sc/source/ui/dataprovider/csvdataprovider.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/dataprovider/csvdataprovider.cxx')
-rw-r--r--sc/source/ui/dataprovider/csvdataprovider.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/dataprovider/csvdataprovider.cxx b/sc/source/ui/dataprovider/csvdataprovider.cxx
index e868e2269358..29391c378db9 100644
--- a/sc/source/ui/dataprovider/csvdataprovider.cxx
+++ b/sc/source/ui/dataprovider/csvdataprovider.cxx
@@ -66,12 +66,12 @@ public:
namespace sc {
CSVFetchThread::CSVFetchThread(
ScDocument& rDoc, const OUString& mrURL, std::function<void()> aImportFinishedHdl,
- const std::vector<std::shared_ptr<sc::DataTransformation>>& rDataTransformations)
+ std::vector<std::shared_ptr<sc::DataTransformation>>&& rDataTransformations)
: Thread("CSV Fetch Thread")
, mrDocument(rDoc)
, maURL(mrURL)
, mbTerminate(false)
- , maDataTransformations(rDataTransformations)
+ , maDataTransformations(std::move(rDataTransformations))
, maImportFinishedHdl(std::move(aImportFinishedHdl))
{
maConfig.delimiters.push_back(',');
@@ -142,7 +142,7 @@ void CSVDataProvider::Import()
mpDoc.reset(new ScDocument(SCDOCMODE_CLIP));
mpDoc->ResetClip(mpDocument, SCTAB(0));
- mxCSVFetchThread = new CSVFetchThread(*mpDoc, mrDataSource.getURL(), std::bind(&CSVDataProvider::ImportFinished, this), mrDataSource.getDataTransformation());
+ mxCSVFetchThread = new CSVFetchThread(*mpDoc, mrDataSource.getURL(), std::bind(&CSVDataProvider::ImportFinished, this), std::vector(mrDataSource.getDataTransformation()));
mxCSVFetchThread->launch();
if (mbDeterministic)