Passing by value is a potential performance issue, for const comparision (Coverity defect)

This commit is contained in:
Nigel Stewart 2016-05-07 20:05:20 +10:00
parent 92b141ee53
commit 73869e9143

View File

@ -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; }