diff options
author | Max Kellermann <max@duempel.org> | 2013-09-26 18:11:00 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-09-26 18:11:00 +0200 |
commit | 3c92c69bc7b0b216051d10a02536e566a27dea00 (patch) | |
tree | 3155a6913de68f3910d5defc90c47c0868f6e1a7 | |
parent | 52ee132d92d4a04d31bbbdeb7c6c0077bd2a2828 (diff) | |
download | mpd-3c92c69bc7b0b216051d10a02536e566a27dea00.tar.gz mpd-3c92c69bc7b0b216051d10a02536e566a27dea00.tar.xz mpd-3c92c69bc7b0b216051d10a02536e566a27dea00.zip |
Tag: add "pure" attributes
-rw-r--r-- | src/tag/Tag.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tag/Tag.hxx b/src/tag/Tag.hxx index 731d7cd58..395780cde 100644 --- a/src/tag/Tag.hxx +++ b/src/tag/Tag.hxx @@ -150,6 +150,7 @@ struct Tag { * Checks whether the tag contains one or more items with * the specified type. */ + gcc_pure bool HasType(tag_type type) const; private: @@ -160,6 +161,7 @@ private: * Parse the string, and convert it into a #tag_type. Returns * #TAG_NUM_OF_ITEM_TYPES if the string could not be recognized. */ +gcc_pure enum tag_type tag_name_parse(const char *name); @@ -169,6 +171,7 @@ tag_name_parse(const char *name); * * Case does not matter. */ +gcc_pure enum tag_type tag_name_parse_i(const char *name); |