diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-07-24 09:40:39 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-07-24 17:31:14 (GMT) |
commit | 65d3ea2c7f737c01b426d73f57167f5ad60c095c (patch) | |
tree | 1df4da69e9a63503dcc60f43908d45649218266c /Source/cmSourceFileLocation.cxx | |
parent | 156f4c2f80a5aa603d71a24ba78441961bfcfd7d (diff) | |
download | CMake-65d3ea2c7f737c01b426d73f57167f5ad60c095c.zip CMake-65d3ea2c7f737c01b426d73f57167f5ad60c095c.tar.gz CMake-65d3ea2c7f737c01b426d73f57167f5ad60c095c.tar.bz2 |
cmAlgorithms: Make cmHasLiteral{Prefix,Suffix} cm::string_view based
Diffstat (limited to 'Source/cmSourceFileLocation.cxx')
-rw-r--r-- | Source/cmSourceFileLocation.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmSourceFileLocation.cxx b/Source/cmSourceFileLocation.cxx index acacba2..d887627 100644 --- a/Source/cmSourceFileLocation.cxx +++ b/Source/cmSourceFileLocation.cxx @@ -146,8 +146,7 @@ bool cmSourceFileLocation::MatchesAmbiguousExtension( // adding an extension. if (!(this->Name.size() > loc.Name.size() && this->Name[loc.Name.size()] == '.' && - cmHasLiteralPrefixImpl(this->Name.c_str(), loc.Name.c_str(), - loc.Name.size()))) { + cmHasPrefix(this->Name, loc.Name))) { return false; } |