mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 04:07:10 +01:00 
			
		
		
		
	Fixed VC++ warning
This commit is contained in:
		| @@ -406,7 +406,7 @@ public: | |||||||
|         MutableResultInfo& result,  |         MutableResultInfo& result,  | ||||||
|         const LhsT* lhs  |         const LhsT* lhs  | ||||||
|     ) |     ) | ||||||
|     :   m_result( result ), |     :   m_result( &result ), | ||||||
|         m_lhs( lhs ) |         m_lhs( lhs ) | ||||||
|     {} |     {} | ||||||
|      |      | ||||||
| @@ -417,7 +417,7 @@ public: | |||||||
|         const RhsT* rhs |         const RhsT* rhs | ||||||
|     ) |     ) | ||||||
|     { |     { | ||||||
|         return m_result.captureExpression<Internal::IsEqualTo>( m_lhs, rhs ); |         return m_result->captureExpression<Internal::IsEqualTo>( m_lhs, rhs ); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /////////////////////////////////////////////////////////////////////////// |     /////////////////////////////////////////////////////////////////////////// | ||||||
| @@ -427,7 +427,7 @@ public: | |||||||
|         LhsT* rhs |         LhsT* rhs | ||||||
|     ) |     ) | ||||||
|     { |     { | ||||||
|         return m_result.captureExpression<Internal::IsEqualTo>( m_lhs, rhs ); |         return m_result->captureExpression<Internal::IsEqualTo>( m_lhs, rhs ); | ||||||
|     } |     } | ||||||
|      |      | ||||||
|     /////////////////////////////////////////////////////////////////////////// |     /////////////////////////////////////////////////////////////////////////// | ||||||
| @@ -437,7 +437,7 @@ public: | |||||||
|         const RhsT* rhs |         const RhsT* rhs | ||||||
|     ) |     ) | ||||||
|     { |     { | ||||||
|         return m_result.captureExpression<Internal::IsNotEqualTo>( m_lhs, rhs ); |         return m_result->captureExpression<Internal::IsNotEqualTo>( m_lhs, rhs ); | ||||||
|     } |     } | ||||||
|      |      | ||||||
|     /////////////////////////////////////////////////////////////////////////// |     /////////////////////////////////////////////////////////////////////////// | ||||||
| @@ -447,11 +447,11 @@ public: | |||||||
|         LhsT* rhs |         LhsT* rhs | ||||||
|     ) |     ) | ||||||
|     { |     { | ||||||
|         return m_result.captureExpression<Internal::IsNotEqualTo>( m_lhs, rhs ); |         return m_result->captureExpression<Internal::IsNotEqualTo>( m_lhs, rhs ); | ||||||
|     } |     } | ||||||
|      |      | ||||||
| private: | private: | ||||||
|     MutableResultInfo& m_result; |     MutableResultInfo* m_result; | ||||||
|     const LhsT* m_lhs; |     const LhsT* m_lhs; | ||||||
| }; | }; | ||||||
|      |      | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Phil Nash
					Phil Nash