From 436c396969a153063191eb0d2c0d8640c11f72e9 Mon Sep 17 00:00:00 2001 From: Devin Gibson Date: Mon, 12 Aug 2024 10:19:30 -0400 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Lin Zhihao <59785146+LinZhihao-723@users.noreply.github.com> --- .../core/src/clp_s/search/antlr_common/ErrorListener.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/core/src/clp_s/search/antlr_common/ErrorListener.hpp b/components/core/src/clp_s/search/antlr_common/ErrorListener.hpp index 8b05a29ca..1f0d11656 100644 --- a/components/core/src/clp_s/search/antlr_common/ErrorListener.hpp +++ b/components/core/src/clp_s/search/antlr_common/ErrorListener.hpp @@ -17,9 +17,9 @@ class ErrorListener : public antlr4::BaseErrorListener { m_error_message = msg; } - bool error() const { return m_error; } + [[nodiscard]] bool error() const { return m_error; } - std::string const& message() const { return m_error_message; } + [[nodiscard]] std::string const& message() const { return m_error_message; } private: bool m_error{false};