summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-22 14:32:47 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-01-22 14:32:58 (GMT)
commitcb7fbf1dbbcc88fc7701250db5c3ccdf0ab7396e (patch)
tree6f19fc14a53cc58f2d2234077ee596934a60afe6 /Source/cmSystemTools.h
parentacaf9801d004dc77d8abbb09b2ce3a88fd182322 (diff)
parent3132ea801c2466773309edda82387025f903fc12 (diff)
downloadCMake-cb7fbf1dbbcc88fc7701250db5c3ccdf0ab7396e.zip
CMake-cb7fbf1dbbcc88fc7701250db5c3ccdf0ab7396e.tar.gz
CMake-cb7fbf1dbbcc88fc7701250db5c3ccdf0ab7396e.tar.bz2
Merge topic 'stdout-string'
3132ea801c cmSystemTools: Stdout(),Stderr() accept std::string argument Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2829
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 489811d..7a209c6 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -79,13 +79,11 @@ public:
typedef void (*OutputCallback)(const char*, size_t length, void*);
///! Send a string to stdout
- static void Stdout(const char* s);
- static void Stdout(const char* s, size_t length);
+ static void Stdout(const std::string& s);
static void SetStdoutCallback(OutputCallback, void* clientData = nullptr);
///! Send a string to stderr
- static void Stderr(const char* s);
- static void Stderr(const char* s, size_t length);
+ static void Stderr(const std::string& s);
static void SetStderrCallback(OutputCallback, void* clientData = nullptr);
typedef bool (*InterruptCallback)(void*);