mirror of https://github.com/stella-emu/stella.git
Fix for suggestion from clang-tidy.
This commit is contained in:
parent
2f2ec4c300
commit
9bd2f3e4f6
|
@ -244,7 +244,7 @@ namespace BSPF
|
||||||
// starting from 'startpos' in the first string
|
// starting from 'startpos' in the first string
|
||||||
static size_t findIgnoreCase(string_view s1, string_view s2, size_t startpos = 0)
|
static size_t findIgnoreCase(string_view s1, string_view s2, size_t startpos = 0)
|
||||||
{
|
{
|
||||||
auto pos = std::search(s1.cbegin()+startpos, s1.cend(),
|
const auto* pos = std::search(s1.cbegin()+startpos, s1.cend(),
|
||||||
s2.cbegin(), s2.cend(), [](char ch1, char ch2) {
|
s2.cbegin(), s2.cend(), [](char ch1, char ch2) {
|
||||||
return toupper(uInt8(ch1)) == toupper(uInt8(ch2));
|
return toupper(uInt8(ch1)) == toupper(uInt8(ch2));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue