diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2022-06-27 06:00:34 (GMT) |
---|---|---|
committer | Alex Turbov <i.zaufi@gmail.com> | 2022-07-11 13:14:02 (GMT) |
commit | 66c3932e588f336a56a97794cb68183bfbba7471 (patch) | |
tree | 8b289218fcfac12df928a5e4e5dd5e6a6e9757a6 | |
parent | 285c994905781086c0f93551ad0e2a553c845be6 (diff) | |
download | CMake-66c3932e588f336a56a97794cb68183bfbba7471.zip CMake-66c3932e588f336a56a97794cb68183bfbba7471.tar.gz CMake-66c3932e588f336a56a97794cb68183bfbba7471.tar.bz2 |
cmFindPackageCommand: Move comment inside the `else if` block
-rw-r--r-- | Source/cmFindPackageCommand.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx index 70c73ad..ec5b58e 100644 --- a/Source/cmFindPackageCommand.cxx +++ b/Source/cmFindPackageCommand.cxx @@ -140,10 +140,9 @@ void cmFindPackageCommand::Sort(std::vector<std::string>::iterator begin, } else { std::sort(begin, end); } - } else if (order == Natural) - // natural order uses letters and numbers (contiguous numbers digit are - // compared such that e.g. 000 00 < 01 < 010 < 09 < 0 < 1 < 9 < 10 - { + } else if (order == Natural) { + // natural order uses letters and numbers (contiguous numbers digit are + // compared such that e.g. 000 00 < 01 < 010 < 09 < 0 < 1 < 9 < 10 if (dir == Dec) { std::sort(begin, end, StrverscmpOp<std::greater>()); } else { |