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 <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Murai Takashi
2024-10-14 11:06:12 +00:00
committed by Adrien Destugues
parent 7c6ab83094
commit 8f0ecca94b
+3 -3
View File
@@ -479,8 +479,8 @@ void BAlert::_ReservedAlert3() {}
void void
BAlert::_Init(const char* text, const char* button0, const char* button1, BAlert::_Init(const char* text, const char* button1, const char* button2,
const char* button2, button_width buttonWidth, button_spacing spacing, const char* button3, button_width buttonWidth, button_spacing spacing,
alert_type type) alert_type type)
{ {
fInvoker = NULL; fInvoker = NULL;
@@ -514,9 +514,9 @@ BAlert::_Init(const char* text, const char* button0, const char* button1,
.AddGlue() .AddGlue()
.Add(fButtonLayout); .Add(fButtonLayout);
AddButton(button0);
AddButton(button1); AddButton(button1);
AddButton(button2); AddButton(button2);
AddButton(button3);
AddCommonFilter(new(std::nothrow) _BAlertFilter_(this)); AddCommonFilter(new(std::nothrow) _BAlertFilter_(this));
} }