mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-06 04:03:27 +03:00
cmList: Simplify overload selection for function pointer
This commit is contained in:
1 parent
b0bcc6c7c0
commit
85a4d0cde7
1 file changed
+3
-3
+3
-3
@@ -114,9 +114,9 @@ protected:
|
||||
|
||||
StringFilter GetCaseFilter(CaseSensitivity sensitivity)
|
||||
{
|
||||
constexpr std::string (*filter)(std::string const&) =
|
||||
cmSystemTools::LowerCase;
|
||||
return (sensitivity == CaseSensitivity::INSENSITIVE) ? filter : nullptr;
|
||||
return (sensitivity == CaseSensitivity::INSENSITIVE)
|
||||
? cmsys::SystemTools::LowerCase
|
||||
: nullptr;
|
||||
}
|
||||
|
||||
using ComparisonFunction =
|
||||
|
||||
Reference in new issue
Block a user