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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Nov 18 21:08:26 UTC 2018


 desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit e6019a99c8c451640d3df5b8ab1fd0be143ddf21
Author:     Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Sun Nov 18 21:11:10 2018 +0100
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Sun Nov 18 22:08:04 2018 +0100

    cppcheck: unreadVariable dp_gui_extensioncmdqueue
    
    Change-Id: I0bf922c5f0135d32f66a756c9e6af0bb22575a75
    Reviewed-on: https://gerrit.libreoffice.org/63532
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx b/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx
index c690ae401b2a..5c0b38da671e 100644
--- a/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx
+++ b/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx
@@ -906,13 +906,10 @@ void ExtensionCmdQueue::Thread::_checkForUpdates(
         // If there is at least one directly downloadable extension then we
         // open the install dialog.
         std::vector< UpdateData > dataDownload;
-        int countWebsiteDownload = 0;
 
         for (auto const& data : vData)
         {
-            if ( !data.sWebsiteURL.isEmpty() )
-                countWebsiteDownload ++;
-            else
+            if ( data.sWebsiteURL.isEmpty() )
                 dataDownload.push_back(data);
         }
 


More information about the Libreoffice-commits mailing list