mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-23 21:15:39 +02:00
Passing by value is a potential performance issue, for const comparision (Coverity defect)
This commit is contained in:
@@ -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; }
|
||||
|
Reference in New Issue
Block a user