summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-02-07 18:30:22 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-02-07 18:30:31 (GMT)
commit41802ef35d58ef9d8761388abeee202503f11642 (patch)
treeeb5f6183ff14898ef78a345996c07a15b6887ba0 /Source/cmFileCommand.cxx
parentaeed642936c90dfbca9e28b2d5f662933ec1df56 (diff)
parentf3534386b504430aec926e46a413b044ff64d769 (diff)
downloadCMake-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.cxx6
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";
}