diff src/mainwindow.cpp @ 671:ce29dc775650 qt5

Fix compiler warnings
author Chris Cannam
date Wed, 05 Dec 2018 09:43:26 +0000
parents cfe684675e81
children 0329bbd4b57c
line wrap: on
line diff
--- a/src/mainwindow.cpp	Fri May 27 11:02:53 2016 +0100
+++ b/src/mainwindow.cpp	Wed Dec 05 09:43:26 2018 +0000
@@ -858,7 +858,7 @@
     hgRefresh();
 }
 
-void MainWindow::hgUnIgnoreFiles(QStringList files)
+void MainWindow::hgUnIgnoreFiles(QStringList)
 {
     // Not implemented: edit the .hgignore instead
     hgEditIgnore();
@@ -2048,7 +2048,7 @@
          output);
 }
 
-void MainWindow::commandStarting(HgAction action)
+void MainWindow::commandStarting(HgAction)
 {
     m_commandSequenceInProgress = true;
 }
@@ -2591,7 +2591,7 @@
     }
 }
 
-void MainWindow::commandCancelled(HgAction cancelledAction)
+void MainWindow::commandCancelled(HgAction)
 {
     // Originally I had this checking whether the cancelled action was
     // a network one and, if so, calling hgQueryPaths to update the
@@ -3115,9 +3115,6 @@
     spacerBefore = spacerAfter = "  ";
 #endif
 
-    bool spacingReqd = false;
-    QString spacer = "";
-
     m_repoToolBar = addToolBar(tr("Remote"));
     m_repoToolBar->setIconSize(QSize(sz, sz));
     if (spacerBefore != "") {