util/OptionParser: add "noexcept"

This commit is contained in:
Max Kellermann
2018-01-16 10:13:39 +01:00
parent 465b154fc0
commit 42c1fe963b
2 changed files with 12 additions and 9 deletions

View File

@@ -22,7 +22,8 @@
#include <string.h>
bool OptionParser::CheckOption(const OptionDef &opt)
bool
OptionParser::CheckOption(const OptionDef &opt) const noexcept
{
assert(option != nullptr);
@@ -35,7 +36,8 @@ bool OptionParser::CheckOption(const OptionDef &opt)
option[1] == '\0';
}
bool OptionParser::ParseNext()
bool
OptionParser::ParseNext() noexcept
{
assert(HasEntries());
char *arg = *argv;