mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-17 11:12:25 +01:00
Passing by value is a potential performance issue, for const comparision (Coverity defect)
This commit is contained in:
parent
92b141ee53
commit
73869e9143
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user