Consistently pass C++ Boolean constants to saveCaptureFile().
authorGuy Harris <guy@alum.mit.edu>
Sat, 28 May 2016 03:33:37 +0000 (20:33 -0700)
committerGuy Harris <guy@alum.mit.edu>
Sat, 28 May 2016 03:34:56 +0000 (03:34 +0000)
The second argument is a bool, so pass bool constants.

(The C integer constants presumably get coerced correctly, but we might
as well be clean.)

Change-Id: Ia170b443bb9933a8916d9dc25d7492fc8acf1f22
Reviewed-on: https://code.wireshark.org/review/15596
Reviewed-by: Guy Harris <guy@alum.mit.edu>
ui/qt/main_window.cpp
ui/qt/main_window_slots.cpp

index a37731ce11f4988158a306dff20dd865e6794752..da2df17aaf34be3179faab393678090df3ee6640 100644 (file)
@@ -993,7 +993,7 @@ void MainWindow::mergeCaptureFile()
 
             case QMessageBox::Save:
                 /* Save the file but don't close it */
-                saveCaptureFile(capture_file_.capFile(), FALSE);
+                saveCaptureFile(capture_file_.capFile(), false);
                 break;
 
             case QMessageBox::Cancel:
index e892261bba1576b08008e42fe8ef8bae4aebcbc6..c51456db22e463980bf417b45b5bcb8099f03aeb 100644 (file)
@@ -1627,7 +1627,7 @@ void MainWindow::on_actionFileClose_triggered() {
 
 void MainWindow::on_actionFileSave_triggered()
 {
-    saveCaptureFile(capture_file_.capFile(), FALSE);
+    saveCaptureFile(capture_file_.capFile(), false);
 }
 
 void MainWindow::on_actionFileSaveAs_triggered()