CaseInsensitiveLess takes args as StringRefs

This commit is contained in:
Martin Hořeňovský committed 2021-12-26 00:52:52 +01:00
1 parent 187bf6db2b
commit 156e6fdfa9
2 files changed
+6 -4

No files matched your search

@@ -14,8 +14,8 @@
namespace Catch {
namespace Detail {
bool CaseInsensitiveLess::operator()( std::string const& lhs,
std::string const& rhs ) const {
bool CaseInsensitiveLess::operator()( StringRef lhs,
StringRef rhs ) const {
return std::lexicographical_compare(
lhs.begin(), lhs.end(),
rhs.begin(), rhs.end(),