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 <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
This commit is contained in:
Murai Takashi 2024-09-29 16:20:17 +09:00 committed by Adrien Destugues
parent 7c6ab83094
commit 8f0ecca94b

View File

@ -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));
}