diff options
author | Brad King <brad.king@kitware.com> | 2019-08-26 14:37:11 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-08-26 14:49:10 (GMT) |
commit | 37c671570c4b344d66eb522ab2b63686550f993b (patch) | |
tree | a750e9e4185162f8af26131e9b4b316acae5272a /Source/cmCMakeHostSystemInformationCommand.cxx | |
parent | 8685d0d2911f01fb7e2d26a2fd904dbf73712ce4 (diff) | |
parent | 3b2b02825d88a045d08b8295927652cbcff408a8 (diff) | |
download | CMake-37c671570c4b344d66eb522ab2b63686550f993b.zip CMake-37c671570c4b344d66eb522ab2b63686550f993b.tar.gz CMake-37c671570c4b344d66eb522ab2b63686550f993b.tar.bz2 |
Merge topic 'source_sweep_ostringstream_single'
3b2b02825d Source sweep: Replace std::ostringstream when used with a single append
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3726
Diffstat (limited to 'Source/cmCMakeHostSystemInformationCommand.cxx')
-rw-r--r-- | Source/cmCMakeHostSystemInformationCommand.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/cmCMakeHostSystemInformationCommand.cxx b/Source/cmCMakeHostSystemInformationCommand.cxx index 1669853..974b984 100644 --- a/Source/cmCMakeHostSystemInformationCommand.cxx +++ b/Source/cmCMakeHostSystemInformationCommand.cxx @@ -2,7 +2,6 @@ file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmCMakeHostSystemInformationCommand.h" -#include <sstream> #include <stddef.h> #include "cmExecutionStatus.h" @@ -183,9 +182,7 @@ bool GetValue(cmExecutionStatus& status, cmsys::SystemInformation& info, std::string ValueToString(size_t value) { - std::ostringstream tmp; - tmp << value; - return tmp.str(); + return std::to_string(value); } std::string ValueToString(const char* value) |