From 81bc59c9ab4227131eb15501986b061aed368267 Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Sun, 12 May 2019 23:16:25 -0400 Subject: [PATCH] Rename for clarity. --- src/frontends/alert.h | 8 ++++---- src/frontends/qt4/GuiAlert.cpp | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/frontends/alert.h b/src/frontends/alert.h index 8770053fba..c3b8065f98 100644 --- a/src/frontends/alert.h +++ b/src/frontends/alert.h @@ -20,7 +20,7 @@ namespace frontend { namespace Alert { /** - * Prompt for a question. Returns 0-2 for the chosen button. + * Prompt for a question. Returns 0-3 for the chosen button. * Set default_button and cancel_button to reasonable values. b1-b3 * should have accelerators marked with an '&'. title should be * a short summary. Strings should be gettextised. @@ -32,9 +32,9 @@ namespace Alert { */ int prompt(docstring const & title, docstring const & question, int default_button, int cancel_button, - docstring const & b1, docstring const & b2, - docstring const & b3 = empty_docstring(), - docstring const & b4 = empty_docstring()); + docstring const & b0, docstring const & b1, + docstring const & b2 = empty_docstring(), + docstring const & b3 = empty_docstring()); /** * Display a warning to the user. Title should be a short (general) summary. diff --git a/src/frontends/qt4/GuiAlert.cpp b/src/frontends/qt4/GuiAlert.cpp index ef4725c84a..4fe7f7bc01 100644 --- a/src/frontends/qt4/GuiAlert.cpp +++ b/src/frontends/qt4/GuiAlert.cpp @@ -139,8 +139,8 @@ int doPrompt(docstring const & title0, docstring const & question, int prompt(docstring const & title0, docstring const & question, int default_button, int cancel_button, - docstring const & b1, docstring const & b2, - docstring const & b3, docstring const & b4) + docstring const & b0, docstring const & b1, + docstring const & b2, docstring const & b3) { #ifdef EXPORT_in_THREAD return InGuiThread().call(&doPrompt, @@ -148,7 +148,7 @@ int prompt(docstring const & title0, docstring const & question, return doPrompt( #endif title0, question, default_button, - cancel_button, b1, b2, b3, b4); + cancel_button, b0, b1, b2, b3); } void doWarning(docstring const & title0, docstring const & message, -- 2.39.5