Kaydet (Commit) 48cfa0b0 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-Werror,-Wunused-private-field

...ever since the code's introduction in
278b1de2 "Added base as a data provider"

Change-Id: I3ccd1d699e0888cb010e46735f8816eea8b41e34
Reviewed-on: https://gerrit.libreoffice.org/61250
Tested-by: Jenkins
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 3db830d3
...@@ -38,26 +38,22 @@ namespace sc ...@@ -38,26 +38,22 @@ namespace sc
class SQLFetchThread : public salhelper::Thread class SQLFetchThread : public salhelper::Thread
{ {
ScDocument& mrDocument; ScDocument& mrDocument;
OUString maURL;
OUString maID; OUString maID;
const std::vector<std::shared_ptr<sc::DataTransformation>> maDataTransformations; const std::vector<std::shared_ptr<sc::DataTransformation>> maDataTransformations;
std::function<void()> maImportFinishedHdl; std::function<void()> maImportFinishedHdl;
public: public:
SQLFetchThread(ScDocument& rDoc, const OUString&, const OUString& rID, SQLFetchThread(ScDocument& rDoc, const OUString& rID, std::function<void()> aImportFinishedHdl,
std::function<void()> aImportFinishedHdl,
const std::vector<std::shared_ptr<sc::DataTransformation>>& rTransformations); const std::vector<std::shared_ptr<sc::DataTransformation>>& rTransformations);
virtual void execute() override; virtual void execute() override;
}; };
SQLFetchThread::SQLFetchThread( SQLFetchThread::SQLFetchThread(
ScDocument& rDoc, const OUString& rURL, const OUString& rID, ScDocument& rDoc, const OUString& rID, std::function<void()> aImportFinishedHdl,
std::function<void()> aImportFinishedHdl,
const std::vector<std::shared_ptr<sc::DataTransformation>>& rTransformations) const std::vector<std::shared_ptr<sc::DataTransformation>>& rTransformations)
: salhelper::Thread("SQL Fetch Thread") : salhelper::Thread("SQL Fetch Thread")
, mrDocument(rDoc) , mrDocument(rDoc)
, maURL(rURL)
, maID(rID) , maID(rID)
, maDataTransformations(rTransformations) , maDataTransformations(rTransformations)
, maImportFinishedHdl(aImportFinishedHdl) , maImportFinishedHdl(aImportFinishedHdl)
...@@ -155,7 +151,7 @@ void SQLDataProvider::Import() ...@@ -155,7 +151,7 @@ void SQLDataProvider::Import()
mpDoc.reset(new ScDocument(SCDOCMODE_CLIP)); mpDoc.reset(new ScDocument(SCDOCMODE_CLIP));
mpDoc->ResetClip(mpDocument, SCTAB(0)); mpDoc->ResetClip(mpDocument, SCTAB(0));
mxSQLFetchThread = new SQLFetchThread(*mpDoc, mrDataSource.getURL(), mrDataSource.getID(), mxSQLFetchThread = new SQLFetchThread(*mpDoc, mrDataSource.getID(),
std::bind(&SQLDataProvider::ImportFinished, this), std::bind(&SQLDataProvider::ImportFinished, this),
mrDataSource.getDataTransformation()); mrDataSource.getDataTransformation());
mxSQLFetchThread->launch(); mxSQLFetchThread->launch();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment