summaryrefslogtreecommitdiff
path: root/Source/cmStandardLevelResolver.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-03 14:51:14 -0400
committerBrad King <brad.king@kitware.com>2021-06-03 14:59:55 -0400
commit410bf8ed4fb225c0f202c9ccb0859ad8c66065c2 (patch)
tree5ec70c4be0c6baebd2bcc80c4ce416023d267cf1 /Source/cmStandardLevelResolver.cxx
parent82584b99e32a8fc7ac46a73ee1966b973fe0c0e1 (diff)
downloadcmake-410bf8ed4fb225c0f202c9ccb0859ad8c66065c2.tar.gz
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 85411e6fe5..b198a0019f 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,