[On behalf of Lexmark]: Pass TestCase by reference

This commit is contained in:
James Trey Nickelsen 2015-08-19 10:21:36 -05:00 committed by James Trey Nickelsen
parent 1dd0d4c61a
commit 146f065097

View File

@ -23,7 +23,7 @@ namespace Catch {
class TestRegistry : public ITestCaseRegistry { class TestRegistry : public ITestCaseRegistry {
struct LexSort { 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 { struct RandomNumberGenerator {
int operator()( int n ) const { return std::rand() % n; } int operator()( int n ) const { return std::rand() % n; }