summaryrefslogtreecommitdiff
path: root/Source/cmForEachCommand.cxx
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2018-11-19 18:10:40 +0100
committerBrad King <brad.king@kitware.com>2018-11-20 10:36:08 -0500
commit5731ec30f0596fefede4321e9883043aa7db60ba (patch)
treea9eb4745aac533e596391de8f58a9a7136f0a9f7 /Source/cmForEachCommand.cxx
parent1dc85a6652bc8255ff7a9ef39028a7df45e3007b (diff)
downloadcmake-5731ec30f0596fefede4321e9883043aa7db60ba.tar.gz
clang-tidy: fix warnings from version 7
Fix some warnings that are new since clang-tidy version 4, and update `.clang-tidy` to suppress the rest.
Diffstat (limited to 'Source/cmForEachCommand.cxx')
-rw-r--r--Source/cmForEachCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmForEachCommand.cxx b/Source/cmForEachCommand.cxx
index 9ff967c504..739c9c0a99 100644
--- a/Source/cmForEachCommand.cxx
+++ b/Source/cmForEachCommand.cxx
@@ -38,7 +38,7 @@ bool cmForEachFunctionBlocker::IsFunctionBlocked(const cmListFileFunction& lff,
// Remove the function blocker for this scope or bail.
std::unique_ptr<cmFunctionBlocker> fb(
mf.RemoveFunctionBlocker(this, lff));
- if (!fb.get()) {
+ if (!fb) {
return false;
}