aboutsummaryrefslogtreecommitdiffstats
path: root/src/Tag.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-07-31 00:26:55 +0200
committerMax Kellermann <max@duempel.org>2013-07-31 00:35:05 +0200
commit7f9402bd22f02a46b32d53560094622493f33f37 (patch)
treeb96b437520be32a512943985035939b9b94e5223 /src/Tag.hxx
parentcbd38327e7f6948647768227ac4836f64e5ccd51 (diff)
downloadmpd-7f9402bd22f02a46b32d53560094622493f33f37.tar.gz
mpd-7f9402bd22f02a46b32d53560094622493f33f37.tar.xz
mpd-7f9402bd22f02a46b32d53560094622493f33f37.zip
Tag: add method Clear()
Allow reusing Tag instances.
Diffstat (limited to '')
-rw-r--r--src/Tag.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Tag.hxx b/src/Tag.hxx
index 5f1702994..2c5f599e2 100644
--- a/src/Tag.hxx
+++ b/src/Tag.hxx
@@ -112,6 +112,11 @@ struct Tag {
return !IsEmpty() || time >= 0;
}
+ /**
+ * Clear everything, as if this was a new Tag object.
+ */
+ void Clear();
+
void DeleteItem(unsigned i);
/**