diff options
author | Brad King <brad.king@kitware.com> | 2019-02-07 18:30:22 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-02-07 18:30:31 (GMT) |
commit | 41802ef35d58ef9d8761388abeee202503f11642 (patch) | |
tree | eb5f6183ff14898ef78a345996c07a15b6887ba0 /Source/cmFileCommand.cxx | |
parent | aeed642936c90dfbca9e28b2d5f662933ec1df56 (diff) | |
parent | f3534386b504430aec926e46a413b044ff64d769 (diff) | |
download | CMake-41802ef35d58ef9d8761388abeee202503f11642.zip CMake-41802ef35d58ef9d8761388abeee202503f11642.tar.gz CMake-41802ef35d58ef9d8761388abeee202503f11642.tar.bz2 |
Merge topic 'prefer-front-back-over-begin-rbegin'
f3534386b5 Prefer front/back/data over dereferencing begin/rbegin iter
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Daniel Pfeifer <daniel@pfeifer-mail.de>
Merge-request: !2914
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r-- | Source/cmFileCommand.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index 0f911c1..2fe0d63 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -3067,7 +3067,7 @@ bool cmFileCommand::HandleDownloadCommand(std::vector<std::string> const& args) if (!logVar.empty()) { chunkDebug.push_back(0); - this->Makefile->AddDefinition(logVar, &*chunkDebug.begin()); + this->Makefile->AddDefinition(logVar, chunkDebug.data()); } return true; @@ -3326,14 +3326,14 @@ bool cmFileCommand::HandleUploadCommand(std::vector<std::string> const& args) if (!chunkResponse.empty()) { chunkResponse.push_back(0); log += "Response:\n"; - log += &*chunkResponse.begin(); + log += chunkResponse.data(); log += "\n"; } if (!chunkDebug.empty()) { chunkDebug.push_back(0); log += "Debug:\n"; - log += &*chunkDebug.begin(); + log += chunkDebug.data(); log += "\n"; } |