From 6f20889f00e4cee39ceac0f65109cdd013ee9a5d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 14 Aug 2015 19:42:11 +0200 Subject: command/CommandListBuilder: postpone "size" initialization --- src/command/CommandListBuilder.cxx | 1 - src/command/CommandListBuilder.hxx | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/command/CommandListBuilder.cxx b/src/command/CommandListBuilder.cxx index e2c7f95a5..4abb3ad16 100644 --- a/src/command/CommandListBuilder.cxx +++ b/src/command/CommandListBuilder.cxx @@ -27,7 +27,6 @@ void CommandListBuilder::Reset() { list.clear(); - size = 0; mode = Mode::DISABLED; } 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; } /** -- cgit v1.2.3