summaryrefslogtreecommitdiffstats
path: root/Source/cmStandardLevelResolver.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-03 18:51:14 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-03 18:59:55 (GMT)
commit410bf8ed4fb225c0f202c9ccb0859ad8c66065c2 (patch)
tree5ec70c4be0c6baebd2bcc80c4ce416023d267cf1 /Source/cmStandardLevelResolver.cxx
parent82584b99e32a8fc7ac46a73ee1966b973fe0c0e1 (diff)
downloadCMake-410bf8ed4fb225c0f202c9ccb0859ad8c66065c2.zip
CMake-410bf8ed4fb225c0f202c9ccb0859ad8c66065c2.tar.gz
CMake-410bf8ed4fb225c0f202c9ccb0859ad8c66065c2.tar.bz2
cmStandardLevelResolver: Fix size assertion in constructor
Assert sizes of the constructed vectors, not the moved-from inputs.
Diffstat (limited to 'Source/cmStandardLevelResolver.cxx')
-rw-r--r--Source/cmStandardLevelResolver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmStandardLevelResolver.cxx b/Source/cmStandardLevelResolver.cxx
index 85411e6..b198a00 100644
--- a/Source/cmStandardLevelResolver.cxx
+++ b/Source/cmStandardLevelResolver.cxx
@@ -62,7 +62,7 @@ struct StanardLevelComputer
, Levels(std::move(levels))
, LevelsAsStrings(std::move(levelsStr))
{
- assert(levels.size() == levelsStr.size());
+ assert(this->Levels.size() == this->LevelsAsStrings.size());
}
std::string GetCompileOptionDef(cmMakefile* makefile,