Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

SourceLineInfo takes char*s instead of std::strings

Commit
87b20e8dab8421c2d85ce72e7ac270267090cd56
Author
Phil Nash ·
Parents
47a5ad3038bd

Files · Download .tar.gz

Changes

 include/internal/catch_common.h                                       | 2 +-
 include/internal/catch_common.hpp                                     | 2 +-
 projects/XCode4/CatchSelfTest/CatchSelfTest.xcodeproj/project.pbxproj | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/internal/catch_common.h b/include/internal/catch_common.h
index 650e1fbe..957ce257 100644
--- a/include/internal/catch_common.h
+++ b/include/internal/catch_common.h
@@ -86,7 +86,7 @@ namespace Catch {
     struct SourceLineInfo {
 
         SourceLineInfo();
-        SourceLineInfo( std::string const& _file, std::size_t _line );
+        SourceLineInfo( char const* _file, std::size_t _line );
         SourceLineInfo( SourceLineInfo const& other );
         bool empty() const;
         bool operator == ( SourceLineInfo const& other ) const;
diff --git a/include/internal/catch_common.hpp b/include/internal/catch_common.hpp
index 4fbf1ffc..89ffeab0 100644
--- a/include/internal/catch_common.hpp
+++ b/include/internal/catch_common.hpp
@@ -50,7 +50,7 @@ namespace Catch {
     }
 
     SourceLineInfo::SourceLineInfo() : line( 0 ){}
-    SourceLineInfo::SourceLineInfo( std::string const& _file, std::size_t _line )
+    SourceLineInfo::SourceLineInfo( char const* _file, std::size_t _line )
     :   file( _file ),
         line( _line )
     {}
diff --git a/projects/XCode4/CatchSelfTest/CatchSelfTest.xcodeproj/project.pbxproj b/projects/XCode4/CatchSelfTest/CatchSelfTest.xcodeproj/project.pbxproj
index c6a13fb8..e8848237 100644
--- a/projects/XCode4/CatchSelfTest/CatchSelfTest.xcodeproj/project.pbxproj
+++ b/projects/XCode4/CatchSelfTest/CatchSelfTest.xcodeproj/project.pbxproj
@@ -323,6 +323,7 @@
 		4AC91CB4155B9EBF00DC5117 /* impl */ = {
 			isa = PBXGroup;
 			children = (
+				4A6D0C5F149B3E3D00DB3EAA /* catch_section.hpp */,
 				261488FA184C81130041FBEB /* catch_test_spec.hpp */,
 				263FD06017AF8DF200988A20 /* catch_timer.hpp */,
 				266E9AD117230ACF0061DAB2 /* catch_text.hpp */,
@@ -350,7 +351,6 @@
 				4A6D0C5C149B3E3D00DB3EAA /* catch_result_type.h */,
 				4A6D0C5D149B3E3D00DB3EAA /* catch_assertionresult.h */,
 				4A9D84B315599AC900FBB209 /* catch_expressionresult_builder.h */,
-				4A6D0C5F149B3E3D00DB3EAA /* catch_section.hpp */,
 				261488FE184DC32F0041FBEB /* catch_section.h */,
 				4A3D7DD01503869D005F9203 /* catch_matchers.hpp */,
 				4A9D84B11558FC0400FBB209 /* catch_tostring.hpp */,