From 92eeb4af7d674994e005bd2deedca5631c6e079a Mon Sep 17 00:00:00 2001 From: Pascal Abresch Date: Thu, 14 Jul 2022 20:46:34 +0200 Subject: [PATCH] apps/musiccollection: build fix Change-Id: Ia2d4f5b9b80d9385c60136f8f6185c820be2181b Reviewed-on: https://review.haiku-os.org/c/haiku/+/5446 Reviewed-by: Adrien Destugues Tested-by: Commit checker robot --- src/apps/musiccollection/FileMonitor.h | 2 +- src/apps/musiccollection/MusicCollectionWindow.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/musiccollection/FileMonitor.h b/src/apps/musiccollection/FileMonitor.h index dac34d41da..d36b79b82d 100644 --- a/src/apps/musiccollection/FileMonitor.h +++ b/src/apps/musiccollection/FileMonitor.h @@ -30,7 +30,7 @@ struct WatchedFile { class NodeRefComp { public: bool - operator()(const node_ref& a, const node_ref& b) + operator()(const node_ref& a, const node_ref& b) const { return a.node < b.node; } diff --git a/src/apps/musiccollection/MusicCollectionWindow.cpp b/src/apps/musiccollection/MusicCollectionWindow.cpp index 40bad47880..8a9a1f56f0 100644 --- a/src/apps/musiccollection/MusicCollectionWindow.cpp +++ b/src/apps/musiccollection/MusicCollectionWindow.cpp @@ -19,6 +19,7 @@ #include "ALMLayout.h" #include "ALMLayoutBuilder.h" +#include static int StringItemComp(const BListItem* first, const BListItem* second)