diff options
author | Max Kellermann <max@duempel.org> | 2015-08-14 19:42:11 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-08-14 19:42:11 +0200 |
commit | 6f20889f00e4cee39ceac0f65109cdd013ee9a5d (patch) | |
tree | 6f0b7ee8f6bfbb185243bd62e7a0e73f85459db1 /src/command/CommandListBuilder.hxx | |
parent | 8e408725e98f1f5dc0cc9299c70d22fcacfdb3a6 (diff) | |
download | mpd-6f20889f00e4cee39ceac0f65109cdd013ee9a5d.tar.gz mpd-6f20889f00e4cee39ceac0f65109cdd013ee9a5d.tar.xz mpd-6f20889f00e4cee39ceac0f65109cdd013ee9a5d.zip |
command/CommandListBuilder: postpone "size" initialization
Diffstat (limited to 'src/command/CommandListBuilder.hxx')
-rw-r--r-- | src/command/CommandListBuilder.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/command/CommandListBuilder.hxx b/src/command/CommandListBuilder.hxx index d2ca9d914..9908121d6 100644 --- a/src/command/CommandListBuilder.hxx +++ b/src/command/CommandListBuilder.hxx @@ -58,7 +58,7 @@ class CommandListBuilder { public: CommandListBuilder() - :mode(Mode::DISABLED), size(0) {} + :mode(Mode::DISABLED) {} /** * Is a command list currently being built? @@ -89,6 +89,7 @@ public: assert(mode == Mode::DISABLED); mode = (Mode)ok; + size = 0; } /** |