aboutsummaryrefslogtreecommitdiffstats
path: root/src/tag
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-09-05 18:41:01 +0200
committerMax Kellermann <max@duempel.org>2013-09-05 18:41:01 +0200
commitce08a7a93277d84506a73361583a8a663f60515f (patch)
tree57eb996052f7fc3009602a7842e4e4369106c475 /src/tag
parent5d5f21bfc5911f9f80b3e24871287ac58db9543f (diff)
downloadmpd-ce08a7a93277d84506a73361583a8a663f60515f.tar.gz
mpd-ce08a7a93277d84506a73361583a8a663f60515f.tar.xz
mpd-ce08a7a93277d84506a73361583a8a663f60515f.zip
TagItem: disable the copy constructor/operator
This is not a C++ class and must not be copied.
Diffstat (limited to 'src/tag')
-rw-r--r--src/tag/TagItem.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tag/TagItem.hxx b/src/tag/TagItem.hxx
index 58a8a9e9e..f661a273b 100644
--- a/src/tag/TagItem.hxx
+++ b/src/tag/TagItem.hxx
@@ -36,6 +36,10 @@ struct TagItem {
* the value of this tag; this is a variable length string
*/
char value[sizeof(long)];
+
+ TagItem() = default;
+ TagItem(const TagItem &other) = delete;
+ TagItem &operator=(const TagItem &other) = delete;
} gcc_packed;
#endif