From 8f0ecca94b83a9579c7c07779f151570405f5c76 Mon Sep 17 00:00:00 2001 From: Murai Takashi Date: Sun, 29 Sep 2024 16:20:17 +0900 Subject: [PATCH] BAlert: Fix argument order Fix different order of arguments between definition and declaration of BAlert::_Init(). Pointed out by cppcheck. Change-Id: I59af49f8d8789bc96df8ad6da6bc499d322771d0 Reviewed-on: https://review.haiku-os.org/c/haiku/+/8378 Tested-by: Commit checker robot Reviewed-by: Adrien Destugues --- src/kits/interface/Alert.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kits/interface/Alert.cpp b/src/kits/interface/Alert.cpp index 40df8181c6..d8a6245570 100644 --- a/src/kits/interface/Alert.cpp +++ b/src/kits/interface/Alert.cpp @@ -479,8 +479,8 @@ void BAlert::_ReservedAlert3() {} void -BAlert::_Init(const char* text, const char* button0, const char* button1, - const char* button2, button_width buttonWidth, button_spacing spacing, +BAlert::_Init(const char* text, const char* button1, const char* button2, + const char* button3, button_width buttonWidth, button_spacing spacing, alert_type type) { fInvoker = NULL; @@ -514,9 +514,9 @@ BAlert::_Init(const char* text, const char* button0, const char* button1, .AddGlue() .Add(fButtonLayout); - AddButton(button0); AddButton(button1); AddButton(button2); + AddButton(button3); AddCommonFilter(new(std::nothrow) _BAlertFilter_(this)); }