diff options
author | grzadr <adrian.grzemski@gmail.com> | 2018-02-22 11:46:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-22 11:46:54 +0300 |
commit | 8e861728a0512c08ef9907ab708d02309736a796 (patch) | |
tree | 949471c12420242a0c5719ed761f7e350e5915e2 /tests/catch.hpp | |
parent | 8cfd71a9bece1d7d265de51508144d82660d4371 (diff) |
Fix indentation in line 2916
Compiling with -Wmisleading-indentation triggers warning:
/data/Git/spdlog/tests/catch.hpp: In member function ‘bool Catch::TestSpec::Filter::matches(const Catch::TestCaseInfo&) const’:
/data/Git/spdlog/tests/catch.hpp:2913:17: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for( std::vector<Ptr<Pattern> >::const_iterator it = m_patterns.begin(), itEnd = m_patterns.end(); it != itEnd; ++it )
^~~
/data/Git/spdlog/tests/catch.hpp:2916:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
return true;
^~~~~~
Diffstat (limited to 'tests/catch.hpp')
-rw-r--r-- | tests/catch.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/catch.hpp b/tests/catch.hpp index 925c6bff..5585d1e3 100644 --- a/tests/catch.hpp +++ b/tests/catch.hpp @@ -2913,7 +2913,7 @@ namespace Catch { for( std::vector<Ptr<Pattern> >::const_iterator it = m_patterns.begin(), itEnd = m_patterns.end(); it != itEnd; ++it )
if( !(*it)->matches( testCase ) )
return false;
- return true;
+ return true;
}
};
|