summaryrefslogtreecommitdiff
path: root/Source/cmAuxSourceDirectoryCommand.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-12-10 14:49:22 +0100
committerBrad King <brad.king@kitware.com>2016-12-12 14:04:13 -0500
commitcac529dd495f05dcd24d33dd5fa595ff28eb7a60 (patch)
tree0f5c90d4ccd017e2ed053aa2dc5a28c9ac1c8860 /Source/cmAuxSourceDirectoryCommand.cxx
parent7c9db8f8139b945d4c55d9061e4ef122351b210d (diff)
downloadcmake-cac529dd495f05dcd24d33dd5fa595ff28eb7a60.tar.gz
clang-tidy: apply performance-faster-string-find fixes
Diffstat (limited to 'Source/cmAuxSourceDirectoryCommand.cxx')
-rw-r--r--Source/cmAuxSourceDirectoryCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmAuxSourceDirectoryCommand.cxx b/Source/cmAuxSourceDirectoryCommand.cxx
index ecff0c3d6d..7cfa4d862d 100644
--- a/Source/cmAuxSourceDirectoryCommand.cxx
+++ b/Source/cmAuxSourceDirectoryCommand.cxx
@@ -49,7 +49,7 @@ bool cmAuxSourceDirectoryCommand::InitialPass(
for (size_t i = 0; i < numfiles; ++i) {
std::string file = dir.GetFile(static_cast<unsigned long>(i));
// Split the filename into base and extension
- std::string::size_type dotpos = file.rfind(".");
+ std::string::size_type dotpos = file.rfind('.');
if (dotpos != std::string::npos) {
std::string ext = file.substr(dotpos + 1);
std::string base = file.substr(0, dotpos);