From 7f9402bd22f02a46b32d53560094622493f33f37 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 31 Jul 2013 00:26:55 +0200 Subject: Tag: add method Clear() Allow reusing Tag instances. --- src/Tag.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Tag.hxx') 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); /** -- cgit v1.2.3