From 86c015295d2a164dd650fb1288c43684322df051 Mon Sep 17 00:00:00 2001 From: Murai Takashi Date: Sun, 29 Sep 2024 16:20:46 +0900 Subject: [PATCH] Tracker: Fix argument order Fix different order of arguments between definition and declaration of TTracker::SelectChildInParentSoon() and TTracker::SelectChildInParent(). Pointed out by cppcheck. Change-Id: Ie78089c80d77f8f687fb9e63883f0ce7b2e2785c Reviewed-on: https://review.haiku-os.org/c/haiku/+/8379 Haiku-Format: Haiku-format Bot Reviewed-by: Adrien Destugues Tested-by: Commit checker robot --- src/kits/tracker/Tracker.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kits/tracker/Tracker.h b/src/kits/tracker/Tracker.h index efda7aef37..555ede931b 100644 --- a/src/kits/tracker/Tracker.h +++ b/src/kits/tracker/Tracker.h @@ -102,8 +102,8 @@ public: const node_ref* parent); // closes parent, waits for child to open first - void SelectChildInParentSoon(const entry_ref* child, - const node_ref* parent); + void SelectChildInParentSoon(const entry_ref* parent, + const node_ref* child); // waits till child shows up in parent and selects it void SelectPoseAtLocationSoon(node_ref parent, BPoint location); @@ -174,8 +174,8 @@ private: const node_ref* parent); bool LaunchAndCloseParentIfOK(const entry_ref* launchThis, const node_ref* closeThis, const BMessage* messageToBundle); - bool SelectChildInParent(const entry_ref* child, - const node_ref* parent); + bool SelectChildInParent(const entry_ref* parent, + const node_ref* child); void SelectPoseAtLocationInParent(node_ref parent, BPoint location); bool CloseParentWindowCommon(BContainerWindow*);