summaryrefslogtreecommitdiffstats
path: root/Source/cmGraphVizWriter.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-07-29 00:00:00 (GMT)
committerBrad King <brad.king@kitware.com>2020-07-28 13:12:16 (GMT)
commit78357e98a4c306847ddc30d9d6db361b66baf31b (patch)
tree45cfe52a6cfbba527dd01bbf482aeadf8582f641 /Source/cmGraphVizWriter.cxx
parent261a2585d9df7113a5ba7c9beacb641754444523 (diff)
downloadCMake-78357e98a4c306847ddc30d9d6db361b66baf31b.zip
CMake-78357e98a4c306847ddc30d9d6db361b66baf31b.tar.gz
CMake-78357e98a4c306847ddc30d9d6db361b66baf31b.tar.bz2
Avoid duplicate calls to GetDefinition
Diffstat (limited to 'Source/cmGraphVizWriter.cxx')
-rw-r--r--Source/cmGraphVizWriter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGraphVizWriter.cxx b/Source/cmGraphVizWriter.cxx
index c23156d..8e9abf8 100644
--- a/Source/cmGraphVizWriter.cxx
+++ b/Source/cmGraphVizWriter.cxx
@@ -260,7 +260,7 @@ void cmGraphVizWriter::ReadSettings(
do { \
const char* value = mf.GetDefinition(cmakeDefinition); \
if (value) { \
- (var) = mf.IsOn(cmakeDefinition); \
+ (var) = cmIsOn(value); \
} \
} while (false)