diff options
author | Brad King <brad.king@kitware.com> | 2014-12-23 13:53:56 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-12-23 13:53:56 (GMT) |
commit | 23e9bc55f38665adab6406980edfaa26f5b14d88 (patch) | |
tree | 8dc53fe90a360e0f8fe3c347be81fe04eef297e5 /Source/CTest | |
parent | 3b3da0d39e36b88db521c8f7eec31ede82596ba1 (diff) | |
parent | 82fbf490b56e0b070cbcfaf1568c496340cd6e8a (diff) | |
download | CMake-23e9bc55f38665adab6406980edfaa26f5b14d88.zip CMake-23e9bc55f38665adab6406980edfaa26f5b14d88.tar.gz CMake-23e9bc55f38665adab6406980edfaa26f5b14d88.tar.bz2 |
Merge topic 'base64-constref'
82fbf490 cmCTestTestHandler: take reference to temporary string instead of doing a copy
Diffstat (limited to 'Source/CTest')
-rw-r--r-- | Source/CTest/cmCTestTestHandler.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx index 78f1fd4..b77825d 100644 --- a/Source/CTest/cmCTestTestHandler.cxx +++ b/Source/CTest/cmCTestTestHandler.cxx @@ -1317,7 +1317,7 @@ void cmCTestTestHandler::AttachFiles(std::ostream& os, result->Properties->AttachedFiles.begin(); file != result->Properties->AttachedFiles.end(); ++file) { - std::string base64 = this->CTest->Base64GzipEncodeFile(*file); + const std::string &base64 = this->CTest->Base64GzipEncodeFile(*file); std::string fname = cmSystemTools::GetFilenameName(*file); os << "\t\t<NamedMeasurement name=\"Attached File\" encoding=\"base64\" " "compression=\"tar/gzip\" filename=\"" << fname << "\" type=\"file\">" |