[Libreoffice-commits] core.git: sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Oct 2 21:38:19 UTC 2018


 sc/source/ui/dataprovider/sqldataprovider.cxx |   10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

New commits:
commit 48cfa0b00b22f11ade53aec79b2fdddad253e1bd
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Oct 2 16:34:02 2018 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Tue Oct 2 23:37:55 2018 +0200

    -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 at redhat.com>

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();


More information about the Libreoffice-commits mailing list