BPackageInfo::Parser::_ParseFlags(): fix indentation
This commit is contained in:
@@ -443,19 +443,19 @@ BPackageInfo::Parser::_ParseFlags()
|
|||||||
|
|
||||||
virtual void operator()(const Token& token)
|
virtual void operator()(const Token& token)
|
||||||
{
|
{
|
||||||
if (token.type != TOKEN_WORD)
|
if (token.type != TOKEN_WORD)
|
||||||
throw ParseError("expected word (a flag)", token.pos);
|
throw ParseError("expected word (a flag)", token.pos);
|
||||||
|
|
||||||
if (token.text.ICompare("approve_license") == 0)
|
if (token.text.ICompare("approve_license") == 0)
|
||||||
flags |= B_PACKAGE_FLAG_APPROVE_LICENSE;
|
flags |= B_PACKAGE_FLAG_APPROVE_LICENSE;
|
||||||
else if (token.text.ICompare("system_package") == 0)
|
else if (token.text.ICompare("system_package") == 0)
|
||||||
flags |= B_PACKAGE_FLAG_SYSTEM_PACKAGE;
|
flags |= B_PACKAGE_FLAG_SYSTEM_PACKAGE;
|
||||||
else {
|
else {
|
||||||
throw ParseError(
|
throw ParseError(
|
||||||
"expected 'approve_license' or 'system_package'",
|
"expected 'approve_license' or 'system_package'",
|
||||||
token.pos);
|
token.pos);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} flagParser;
|
} flagParser;
|
||||||
|
|
||||||
_ParseList(flagParser, true);
|
_ParseList(flagParser, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user