diff options
author | Brad King <brad.king@kitware.com> | 2021-06-03 14:51:14 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-03 14:59:55 -0400 |
commit | 410bf8ed4fb225c0f202c9ccb0859ad8c66065c2 (patch) | |
tree | 5ec70c4be0c6baebd2bcc80c4ce416023d267cf1 /Source/cmStandardLevelResolver.cxx | |
parent | 82584b99e32a8fc7ac46a73ee1966b973fe0c0e1 (diff) | |
download | cmake-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.cxx | 2 |
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, |