From 863f0b1979656022f09569d6d51c03c7a1ea58ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Fri, 5 Sep 2014 23:23:00 +0200 Subject: [PATCH] HaikuDepot/List: added IsEmpty() method --- src/apps/haikudepot/List.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/apps/haikudepot/List.h b/src/apps/haikudepot/List.h index 804d7769e3..bf31048b9f 100644 --- a/src/apps/haikudepot/List.h +++ b/src/apps/haikudepot/List.h @@ -99,6 +99,11 @@ public: { _Resize(0); } + + inline bool IsEmpty() const + { + return fCount == 0; + } inline int32 CountItems() const {