From c430b75e370a21a17f80d4ba3acd84111828a462 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 26 Sep 2013 20:08:44 +0300 Subject: add const for methods return values. --- src/textcommand.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/textcommand.h') diff --git a/src/textcommand.h b/src/textcommand.h index b39cafaff..81f91d7d4 100644 --- a/src/textcommand.h +++ b/src/textcommand.h @@ -159,7 +159,7 @@ class TextCommand final { mCommandType = commandType; } bool isEmpty() const A_WARN_UNUSED - { return mCommand == "" && mSymbol == ""; } + { return mCommand.empty() && mSymbol.empty(); } Image *getImage() const A_WARN_UNUSED { return mImage; } -- cgit v1.2.3-60-g2f50