Skip to content

Commit

Permalink
Address some of the Resharper finds for Catch 1
Browse files Browse the repository at this point in the history
Closes #957 as the other findings are mostly noise that is pointless
to fix in a branch that will be soon EoLd.
  • Loading branch information
horenmar committed Jul 31, 2017
1 parent d3377c7 commit 8a2ff20
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/internal/catch_assertionresult.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace Catch {

struct AssertionInfo
{
AssertionInfo() {}
AssertionInfo();
AssertionInfo( char const * _macroName,
SourceLineInfo const& _lineInfo,
char const * _capturedExpression,
Expand Down
2 changes: 2 additions & 0 deletions include/internal/catch_assertionresult.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
namespace Catch {


AssertionInfo::AssertionInfo():macroName(""), capturedExpression(""), resultDisposition(ResultDisposition::Flags::Normal), secondArg(""){}

AssertionInfo::AssertionInfo( char const * _macroName,
SourceLineInfo const& _lineInfo,
char const * _capturedExpression,
Expand Down
2 changes: 1 addition & 1 deletion include/internal/catch_test_spec_parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace Catch {
ITagAliasRegistry const* m_tagAliases;

public:
TestSpecParser( ITagAliasRegistry const& tagAliases ) : m_tagAliases( &tagAliases ) {}
TestSpecParser( ITagAliasRegistry const& tagAliases ) :m_mode(None), m_exclusion(false), m_start(0), m_pos(0), m_tagAliases( &tagAliases ) {}

TestSpecParser& parse( std::string const& arg ) {
m_mode = None;
Expand Down

0 comments on commit 8a2ff20

Please sign in to comment.