mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Added braces to emphasise the return logic
This commit is contained in:
		| @@ -64,9 +64,10 @@ namespace Catch { | |||||||
|  |  | ||||||
|             bool matches( TestCaseInfo const& testCase ) const { |             bool matches( TestCaseInfo const& testCase ) const { | ||||||
|                 // All patterns in a filter must match for the filter to be a match |                 // 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 ) ) |                     if( !(*it)->matches( testCase ) ) | ||||||
|                         return false; |                         return false; | ||||||
|  |                 } | ||||||
|                 return true; |                 return true; | ||||||
|             } |             } | ||||||
|         }; |         }; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Phil Nash
					Phil Nash