astyle formatting

[ci skip]
This commit is contained in:
Daniel Marjamäki 2020-01-24 21:34:47 +01:00
parent 1cabba8755
commit b3e192a4e1
1 changed files with 4 additions and 8 deletions

View File

@ -148,8 +148,7 @@ inline static bool matchglob(const std::string& pattern, const std::string& name
// Any character matches unless we're at the end of the name // Any character matches unless we're at the end of the name
if (*n != '\0') { if (*n != '\0') {
n++; n++;
} } else {
else {
matching = false; matching = false;
} }
break; break;
@ -157,14 +156,11 @@ inline static bool matchglob(const std::string& pattern, const std::string& name
// Non-wildcard characters match literally // Non-wildcard characters match literally
if (*n == *p) { if (*n == *p) {
n++; n++;
} } else if (*n == '\\' && *p == '/') {
else if (*n == '\\' && *p == '/') {
n++; n++;
} } else if (*n == '/' && *p == '\\') {
else if (*n == '/' && *p == '\\') {
n++; n++;
} } else {
else {
matching = false; matching = false;
} }
break; break;