From 05d2f873b793b0a237a18f46e91f1deb62a524bf Mon Sep 17 00:00:00 2001 From: trnsmkot Date: Thu, 14 May 2026 19:36:49 +0700 Subject: [PATCH] Mark `isEmpty` method in `Node` class as `[[nodiscard]]` and `const` to enforce proper usage and ensure immutability. --- models/android/xml/Node.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/android/xml/Node.h b/models/android/xml/Node.h index 6730348..0a6807b 100644 --- a/models/android/xml/Node.h +++ b/models/android/xml/Node.h @@ -13,7 +13,7 @@ public: m_y2 = y2; } - bool isEmpty() { + [[nodiscard]] bool isEmpty() const { return m_x1 < 0 && m_y1 < 0 && m_x2 < 0 && m_y2 < 0 && text.isEmpty() && className.isEmpty(); }