A load more C++11 tweaks - mostly moving initialisations from constructors to inline
This commit is contained in:
parent
cc8206f4c3
commit
e749724a11
23 changed files with 64 additions and 145 deletions
|
@ -13,8 +13,6 @@
|
|||
namespace Catch {
|
||||
|
||||
struct Counts {
|
||||
Counts() : passed( 0 ), failed( 0 ), failedButOk( 0 ) {}
|
||||
|
||||
Counts operator - ( Counts const& other ) const {
|
||||
Counts diff;
|
||||
diff.passed = passed - other.passed;
|
||||
|
@ -39,9 +37,9 @@ namespace Catch {
|
|||
return failed == 0;
|
||||
}
|
||||
|
||||
std::size_t passed;
|
||||
std::size_t failed;
|
||||
std::size_t failedButOk;
|
||||
std::size_t passed = 0;
|
||||
std::size_t failed = 0;
|
||||
std::size_t failedButOk = 0;
|
||||
};
|
||||
|
||||
struct Totals {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue