mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-17 03:02:24 +01:00
LexSort function optimization
This commit is contained in:
parent
b3b2352045
commit
3fc8a8c82c
@ -22,7 +22,7 @@
|
||||
namespace Catch {
|
||||
|
||||
struct LexSort {
|
||||
bool operator() (TestCase i,TestCase j) const { return (i<j);}
|
||||
bool operator() (const TestCase& i, const TestCase& j) const { return (i<j);}
|
||||
};
|
||||
struct RandomNumberGenerator {
|
||||
int operator()( int n ) const { return std::rand() % n; }
|
||||
|
@ -5926,7 +5926,7 @@ namespace Catch {
|
||||
namespace Catch {
|
||||
|
||||
struct LexSort {
|
||||
bool operator() (TestCase i,TestCase j) const { return (i<j);}
|
||||
bool operator() (const TestCase& i, const TestCase& j) const { return (i<j);}
|
||||
};
|
||||
struct RandomNumberGenerator {
|
||||
int operator()( int n ) const { return std::rand() % n; }
|
||||
|
Loading…
Reference in New Issue
Block a user