diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-02-06 20:00:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-02-07 18:41:27 (GMT) |
commit | 82edd98300b9d050dd28fdfa1e6ea7b18ecca22c (patch) | |
tree | a0bd32bc16a5793f9729cfb82872e4df8f47ad78 /Source/cmSystemTools.cxx | |
parent | 062cfd991faac000d484c74e5af7d65726c655dc (diff) | |
download | CMake-82edd98300b9d050dd28fdfa1e6ea7b18ecca22c.zip CMake-82edd98300b9d050dd28fdfa1e6ea7b18ecca22c.tar.gz CMake-82edd98300b9d050dd28fdfa1e6ea7b18ecca22c.tar.bz2 |
cmSystemTools: MessageCallback and Message() accept std::string argument
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 1d20e2f..ec38b65 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -323,16 +323,16 @@ void cmSystemTools::Stdout(const std::string& s) } } -void cmSystemTools::Message(const char* m1, const char* title) +void cmSystemTools::Message(const std::string& m, const char* title) { if (s_DisableMessages) { return; } if (s_MessageCallback) { - s_MessageCallback(m1, title); + s_MessageCallback(m, title); return; } - std::cerr << m1 << std::endl << std::flush; + std::cerr << m << std::endl << std::flush; } void cmSystemTools::ReportLastSystemError(const char* msg) |