diff --git a/repos/base/src/base/console/console.cc b/repos/base/src/base/console/console.cc index cb615c2a3..5e56277aa 100644 --- a/repos/base/src/base/console/console.cc +++ b/repos/base/src/base/console/console.cc @@ -54,13 +54,13 @@ class Format_command public: - Type type; /* format argument type */ - Length length; /* format argument length */ - int padding; /* min number of characters to print */ - int base; /* base of numeric arguments */ - int zeropad : 1; /* pad with zero instead of space */ - int uppercase : 1; /* use upper case for hex numbers */ - int consumed; /* nb of consumed format string characters */ + Type type = INVALID; /* format argument type */ + Length length = DEFAULT; /* format argument length */ + int padding = 0; /* min number of characters to print */ + int base = 10; /* base of numeric arguments */ + bool zeropad = false; /* pad with zero instead of space */ + bool uppercase = false; /* use upper case for hex numbers */ + int consumed = 0; /* nb of consumed format string chars */ /** * Constructor @@ -69,12 +69,6 @@ class Format_command */ explicit Format_command(const char *format) { - consumed = 0; - uppercase = 0; - base = 10; - type = INVALID; - length = DEFAULT; - /* check for command begin and eat the character */ if (format[consumed] != '%') return; if (!format[++consumed]) return;