From 53da7df201153d707996d625d382605c2387e4f9 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 27 Jun 2011 04:07:16 +0200 Subject: [PATCH] Small cleanup --- src/kits/package/PackageInfo.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/kits/package/PackageInfo.cpp b/src/kits/package/PackageInfo.cpp index 8f7a6f510a..8e4b304cb6 100644 --- a/src/kits/package/PackageInfo.cpp +++ b/src/kits/package/PackageInfo.cpp @@ -448,28 +448,28 @@ BPackageInfo::Parser::_ParseStringList(BObjectList* value, BObjectList* value; bool allowQuotedStrings; - StringParser(BObjectList* value_, bool allowQuotedStrings_) + StringParser(BObjectList* value, bool allowQuotedStrings) : - value(value_), - allowQuotedStrings(allowQuotedStrings_) + value(value), + allowQuotedStrings(allowQuotedStrings) { } virtual void operator()(const Token& token) { - if (allowQuotedStrings) { + if (allowQuotedStrings) { if (token.type != TOKEN_QUOTED_STRING && token.type != TOKEN_WORD) { throw ParseError("expected quoted-string or word", token.pos); } - } else { - if (token.type != TOKEN_WORD) - throw ParseError("expected word", token.pos); - } + } else { + if (token.type != TOKEN_WORD) + throw ParseError("expected word", token.pos); + } - value->AddItem(new BString(token.text)); - } + value->AddItem(new BString(token.text)); + } } stringParser(value, allowQuotedStrings); _ParseList(stringParser);