From c199a1722fae72e254753f3095444a3c82a2a704 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 25 Oct 2022 11:19:52 +0400 Subject: [PATCH] Add TextWithTags::empty method. --- ui/text/text_entity.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/text/text_entity.h b/ui/text/text_entity.h index 1986dca..d5a770c 100644 --- a/ui/text/text_entity.h +++ b/ui/text/text_entity.h @@ -256,6 +256,10 @@ struct TextWithTags { QString text; Tags tags; + + [[nodiscard]] bool empty() const { + return text.isEmpty(); + } }; inline bool operator==(const TextWithTags::Tag &a, const TextWithTags::Tag &b) {