mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-17 03:02:24 +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 {
|
||||
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 {
|
||||
int operator()( int n ) const { return std::rand() % n; }
|
||||
|
Loading…
Reference in New Issue
Block a user