diff options
author | Brad King <brad.king@kitware.com> | 2019-07-19 10:15:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-07-19 13:58:12 (GMT) |
commit | 95d3598e0441bd9f276be1d6b4054442aad16608 (patch) | |
tree | 10068488142ed0961215408bd8bea82c92542421 /Source/cmGeneratorExpressionDAGChecker.cxx | |
parent | ac000e29da89eec74fc106fc41c48a098f8ff971 (diff) | |
download | CMake-95d3598e0441bd9f276be1d6b4054442aad16608.zip CMake-95d3598e0441bd9f276be1d6b4054442aad16608.tar.gz CMake-95d3598e0441bd9f276be1d6b4054442aad16608.tar.bz2 |
cmGeneratorExpressionDAGChecker: Avoid const_cast
Make a member mutable to avoid casting away const of a whole object.
Diffstat (limited to 'Source/cmGeneratorExpressionDAGChecker.cxx')
-rw-r--r-- | Source/cmGeneratorExpressionDAGChecker.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmGeneratorExpressionDAGChecker.cxx b/Source/cmGeneratorExpressionDAGChecker.cxx index 728f2a4..817f41e 100644 --- a/Source/cmGeneratorExpressionDAGChecker.cxx +++ b/Source/cmGeneratorExpressionDAGChecker.cxx @@ -68,9 +68,7 @@ void cmGeneratorExpressionDAGChecker::Initialize() return; } } - const_cast<cmGeneratorExpressionDAGChecker*>(top) - ->Seen[this->Target] - .insert(this->Property); + top->Seen[this->Target].insert(this->Property); } } |