Commit a0c4102b authored by Max Kellermann's avatar Max Kellermann

util/OptionDef: add "constexpr"

parent 94200668
......@@ -40,9 +40,9 @@ public:
short_option(_short_option),
desc(_desc) { }
bool HasLongOption() const { return long_option != nullptr; }
bool HasShortOption() const { return short_option != 0; }
bool HasDescription() const { return desc != nullptr; }
constexpr bool HasLongOption() const { return long_option != nullptr; }
constexpr bool HasShortOption() const { return short_option != 0; }
constexpr bool HasDescription() const { return desc != nullptr; }
const char *GetLongOption() const {
assert(HasLongOption());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment