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/item.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/item.h') diff --git a/src/item.h b/src/item.h index d8ede3995..b9939c6e1 100644 --- a/src/item.h +++ b/src/item.h @@ -163,7 +163,7 @@ class Item unsigned char getColor() const A_WARN_UNUSED { return mColor; } - std::string &getDescription() A_WARN_UNUSED + const std::string &getDescription() const A_WARN_UNUSED { return mDescription; } int mId; /**< Item type id. */ -- cgit v1.2.3-60-g2f50