Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorPhil Nash2016-09-27 09:58:12 +0100
committerPhil Nash2016-09-27 09:58:12 +0100
commitc23b374f3dea7e51bb0acf676c993d82a34db190 (patch)
tree3f220629552cdd4439ebac5b338295c27821f39a /include
parent916317bd81468ce29a51b7a28c96ee51416e9fbd (diff)
downloadcatch3-c23b374f3dea7e51bb0acf676c993d82a34db190.tar.gz
Added braces to emphasise the return logic
Diffstat (limited to 'include')
-rw-r--r--include/internal/catch_test_spec.hpp3
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;
}
};