diff options
| author | Phil Nash | 2016-09-27 09:58:12 +0100 |
|---|---|---|
| committer | Phil Nash | 2016-09-27 09:58:12 +0100 |
| commit | c23b374f3dea7e51bb0acf676c993d82a34db190 (patch) | |
| tree | 3f220629552cdd4439ebac5b338295c27821f39a /include | |
| parent | 916317bd81468ce29a51b7a28c96ee51416e9fbd (diff) | |
| download | catch3-c23b374f3dea7e51bb0acf676c993d82a34db190.tar.gz | |
Added braces to emphasise the return logic
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal/catch_test_spec.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/internal/catch_test_spec.hpp b/include/internal/catch_test_spec.hpp index bc700c1a..3ec59b55 100644 --- a/include/internal/catch_test_spec.hpp +++ b/include/internal/catch_test_spec.hpp @@ -64,9 +64,10 @@ namespace Catch { bool matches( TestCaseInfo const& testCase ) const { // All patterns in a filter must match for the filter to be a match - for( std::vector<Ptr<Pattern> >::const_iterator it = m_patterns.begin(), itEnd = m_patterns.end(); it != itEnd; ++it ) + 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; } }; |