mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 22:50:26 -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:
@@ -771,7 +771,7 @@ bool cmStringCommand::HandleRandomCommand(std::vector<std::string> const& args)
|
||||
}
|
||||
result.push_back(0);
|
||||
|
||||
this->Makefile->AddDefinition(variableName, &*result.begin());
|
||||
this->Makefile->AddDefinition(variableName, result.data());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user