summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-10-02 16:34:02 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-10-02 23:37:55 +0200
commit48cfa0b00b22f11ade53aec79b2fdddad253e1bd (patch)
tree2e0f4547ef7eba5f454ca8943a629f67d5a2f8a7
parent3db830d354de80b319fb818a0373365a1e647264 (diff)
-Werror,-Wunused-private-field
...ever since the code's introduction in 278b1de21f8395ab2a6c49377cf4aec4c16f05c6 "Added base as a data provider" Change-Id: I3ccd1d699e0888cb010e46735f8816eea8b41e34 Reviewed-on: https://gerrit.libreoffice.org/61250 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--sc/source/ui/dataprovider/sqldataprovider.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/sc/source/ui/dataprovider/sqldataprovider.cxx b/sc/source/ui/dataprovider/sqldataprovider.cxx
index 014dff82af82..1c16b1647844 100644
--- a/sc/source/ui/dataprovider/sqldataprovider.cxx
+++ b/sc/source/ui/dataprovider/sqldataprovider.cxx
@@ -38,26 +38,22 @@ namespace sc
class SQLFetchThread : public salhelper::Thread
{
ScDocument& mrDocument;
- OUString maURL;
OUString maID;
const std::vector<std::shared_ptr<sc::DataTransformation>> maDataTransformations;
std::function<void()> maImportFinishedHdl;
public:
- SQLFetchThread(ScDocument& rDoc, const OUString&, const OUString& rID,
- std::function<void()> aImportFinishedHdl,
+ SQLFetchThread(ScDocument& rDoc, const OUString& rID, std::function<void()> aImportFinishedHdl,
const std::vector<std::shared_ptr<sc::DataTransformation>>& rTransformations);
virtual void execute() override;
};
SQLFetchThread::SQLFetchThread(
- ScDocument& rDoc, const OUString& rURL, const OUString& rID,
- std::function<void()> aImportFinishedHdl,
+ ScDocument& rDoc, const OUString& rID, std::function<void()> aImportFinishedHdl,
const std::vector<std::shared_ptr<sc::DataTransformation>>& rTransformations)
: salhelper::Thread("SQL Fetch Thread")
, mrDocument(rDoc)
- , maURL(rURL)
, maID(rID)
, maDataTransformations(rTransformations)
, maImportFinishedHdl(aImportFinishedHdl)
@@ -155,7 +151,7 @@ void SQLDataProvider::Import()
mpDoc.reset(new ScDocument(SCDOCMODE_CLIP));
mpDoc->ResetClip(mpDocument, SCTAB(0));
- mxSQLFetchThread = new SQLFetchThread(*mpDoc, mrDataSource.getURL(), mrDataSource.getID(),
+ mxSQLFetchThread = new SQLFetchThread(*mpDoc, mrDataSource.getID(),
std::bind(&SQLDataProvider::ImportFinished, this),
mrDataSource.getDataTransformation());
mxSQLFetchThread->launch();