SourceLineInfo takes char*s instead of std::strings

This commit is contained in:
Phil Nash
2013-12-04 08:12:30 +00:00
parent 47a5ad3038
commit 87b20e8dab
3 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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 )
{}