CLI2: Removed unnecessary processing of filter
This commit is contained in:
@@ -555,9 +555,9 @@ void CLI2::analyze ()
|
|||||||
// Process raw string.
|
// Process raw string.
|
||||||
void CLI2::addFilter (const std::string& arg)
|
void CLI2::addFilter (const std::string& arg)
|
||||||
{
|
{
|
||||||
std::vector <std::string> filter;
|
|
||||||
|
|
||||||
if (arg.length ())
|
if (arg.length ())
|
||||||
|
{
|
||||||
|
std::vector <std::string> filter;
|
||||||
filter.push_back ("(");
|
filter.push_back ("(");
|
||||||
|
|
||||||
std::string lexeme;
|
std::string lexeme;
|
||||||
@@ -567,11 +567,10 @@ void CLI2::addFilter (const std::string& arg)
|
|||||||
while (lex.token (lexeme, type))
|
while (lex.token (lexeme, type))
|
||||||
filter.push_back (lexeme);
|
filter.push_back (lexeme);
|
||||||
|
|
||||||
if (arg.length ())
|
|
||||||
filter.push_back (")");
|
filter.push_back (")");
|
||||||
|
|
||||||
add (filter);
|
add (filter);
|
||||||
analyze ();
|
analyze ();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user