mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 18:20:26 +01:00
trunk/branch integration: fix warning
This commit is contained in:
parent
560be487dd
commit
7f54dc2b35
@ -47,10 +47,10 @@ namespace Poco {
|
||||
|
||||
|
||||
Glob::Glob(const std::string& pattern, int options):
|
||||
_pattern(pattern),
|
||||
_options(options)
|
||||
_pattern(pattern),
|
||||
_options(options)
|
||||
{
|
||||
poco_assert (!_pattern.empty());
|
||||
poco_assert (!_pattern.empty());
|
||||
}
|
||||
|
||||
|
||||
@ -129,13 +129,13 @@ bool Glob::match(TextIterator& itp, const TextIterator& endp, TextIterator& its,
|
||||
{
|
||||
bool invert = *itp == '!';
|
||||
if (invert) ++itp;
|
||||
if (itp != endp)
|
||||
{
|
||||
bool mtch = matchSet(itp, endp, *its++);
|
||||
if (invert && mtch || !invert && !mtch) return false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (itp != endp)
|
||||
{
|
||||
bool mtch = matchSet(itp, endp, *its++);
|
||||
if ((invert && mtch) || (!invert && !mtch)) return false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
throw SyntaxException("bad range syntax in glob pattern");
|
||||
case '\\':
|
||||
if (++itp == endp) throw SyntaxException("backslash must be followed by character in glob pattern");
|
||||
|
Loading…
Reference in New Issue
Block a user