mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
Prefer front/back/data over dereferencing begin/rbegin iter
Changed for sequenced containers: vector, list, string and array
This commit is contained in:
@@ -466,7 +466,7 @@ bool cmFindPackageCommand::InitialPass(std::vector<std::string> const& args,
|
||||
// Allocate a PACKAGE_ROOT_PATH for the current find_package call.
|
||||
this->Makefile->FindPackageRootPathStack.emplace_back();
|
||||
std::vector<std::string>& rootPaths =
|
||||
*this->Makefile->FindPackageRootPathStack.rbegin();
|
||||
this->Makefile->FindPackageRootPathStack.back();
|
||||
|
||||
// Add root paths from <PackageName>_ROOT CMake and environment variables,
|
||||
// subject to CMP0074.
|
||||
|
||||
Reference in New Issue
Block a user