aboutsummaryrefslogtreecommitdiffstats
path: root/src/tag/Tag.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-19 03:11:01 +0100
committerMax Kellermann <max@duempel.org>2014-01-19 03:11:01 +0100
commitbde27ccec3468efb3bc669b980e8850cb5150e15 (patch)
treeb2f8a43c6be2101c3e43fbb310ee16ad0469b52c /src/tag/Tag.cxx
parentd2cf74027c2c252181ab16c1348281c252665353 (diff)
downloadmpd-bde27ccec3468efb3bc669b980e8850cb5150e15.tar.gz
mpd-bde27ccec3468efb3bc669b980e8850cb5150e15.tar.xz
mpd-bde27ccec3468efb3bc669b980e8850cb5150e15.zip
Tag: pack attributes tighter
This saves another 3% memory.
Diffstat (limited to 'src/tag/Tag.cxx')
-rw-r--r--src/tag/Tag.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tag/Tag.cxx b/src/tag/Tag.cxx
index 34bfc0495..448f3b26a 100644
--- a/src/tag/Tag.cxx
+++ b/src/tag/Tag.cxx
@@ -76,8 +76,8 @@ Tag::Clear()
Tag::Tag(const Tag &other)
:time(other.time), has_playlist(other.has_playlist),
- items(nullptr),
- num_items(other.num_items)
+ num_items(other.num_items),
+ items(nullptr)
{
if (num_items > 0) {
items = new TagItem *[num_items];