A load more C++11 tweaks - mostly moving initialisations from constructors to inline

This commit is contained in:
Phil Nash
2017-04-25 18:56:53 +01:00
parent cc8206f4c3
commit e749724a11
23 changed files with 64 additions and 145 deletions

View File

@@ -53,11 +53,6 @@ namespace Catch {
struct AssertionResultData
{
AssertionResultData() : decomposedExpression( nullptr )
, resultType( ResultWas::Unknown )
, negated( false )
, parenthesized( false ) {}
void negate( bool parenthesize ) {
negated = !negated;
parenthesized = parenthesize;
@@ -82,12 +77,12 @@ namespace Catch {
return reconstructedExpression;
}
mutable DecomposedExpression const* decomposedExpression;
mutable DecomposedExpression const* decomposedExpression = nullptr;
mutable std::string reconstructedExpression;
std::string message;
ResultWas::OfType resultType;
bool negated;
bool parenthesized;
ResultWas::OfType resultType = ResultWas::Unknown;
bool negated = false;
bool parenthesized = false;
};
class AssertionResult {