summaryrefslogtreecommitdiffstats
path: root/Source/cmAddCustomTargetCommand.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-12-10 13:49:22 (GMT)
committerBrad King <brad.king@kitware.com>2016-12-12 19:04:13 (GMT)
commitcac529dd495f05dcd24d33dd5fa595ff28eb7a60 (patch)
tree0f5c90d4ccd017e2ed053aa2dc5a28c9ac1c8860 /Source/cmAddCustomTargetCommand.cxx
parent7c9db8f8139b945d4c55d9061e4ef122351b210d (diff)
downloadCMake-cac529dd495f05dcd24d33dd5fa595ff28eb7a60.zip
CMake-cac529dd495f05dcd24d33dd5fa595ff28eb7a60.tar.gz
CMake-cac529dd495f05dcd24d33dd5fa595ff28eb7a60.tar.bz2
clang-tidy: apply performance-faster-string-find fixes
Diffstat (limited to 'Source/cmAddCustomTargetCommand.cxx')
-rw-r--r--Source/cmAddCustomTargetCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmAddCustomTargetCommand.cxx b/Source/cmAddCustomTargetCommand.cxx
index 4e656aa..56f33b4 100644
--- a/Source/cmAddCustomTargetCommand.cxx
+++ b/Source/cmAddCustomTargetCommand.cxx
@@ -154,7 +154,7 @@ bool cmAddCustomTargetCommand::InitialPass(
bool nameOk = cmGeneratorExpression::IsValidTargetName(targetName) &&
!cmGlobalGenerator::IsReservedTarget(targetName);
if (nameOk) {
- nameOk = targetName.find(":") == std::string::npos;
+ nameOk = targetName.find(':') == std::string::npos;
}
if (!nameOk) {
cmake::MessageType messageType = cmake::AUTHOR_WARNING;