mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-17 11:12:25 +01:00
[On behalf of Lexmark]: Pass TestCase by reference
This commit is contained in:
parent
1dd0d4c61a
commit
146f065097
@ -23,7 +23,7 @@ namespace Catch {
|
|||||||
|
|
||||||
class TestRegistry : public ITestCaseRegistry {
|
class TestRegistry : public ITestCaseRegistry {
|
||||||
struct LexSort {
|
struct LexSort {
|
||||||
bool operator() (TestCase i,TestCase j) const { return (i<j);}
|
bool operator() ( TestCase const& i, TestCase const& j) const { return ( i < j ); }
|
||||||
};
|
};
|
||||||
struct RandomNumberGenerator {
|
struct RandomNumberGenerator {
|
||||||
int operator()( int n ) const { return std::rand() % n; }
|
int operator()( int n ) const { return std::rand() % n; }
|
||||||
|
Loading…
Reference in New Issue
Block a user