summaryrefslogtreecommitdiffstats
path: root/Source/cmMessenger.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2019-01-28 14:35:51 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2019-01-28 14:35:51 (GMT)
commit186d9b083db0e3fc77d9d92821e3cf45e06271da (patch)
tree0959f75743422467ab83bc128aeaa7003ac780ac /Source/cmMessenger.cxx
parent1593e16d881bf74fd8981e1290d20f28191f1f0e (diff)
downloadCMake-186d9b083db0e3fc77d9d92821e3cf45e06271da.zip
CMake-186d9b083db0e3fc77d9d92821e3cf45e06271da.tar.gz
CMake-186d9b083db0e3fc77d9d92821e3cf45e06271da.tar.bz2
cmSystemTools::Message: Add overload accepting std::string
Diffstat (limited to 'Source/cmMessenger.cxx')
-rw-r--r--Source/cmMessenger.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmMessenger.cxx b/Source/cmMessenger.cxx
index 3d788f6..1d790e2 100644
--- a/Source/cmMessenger.cxx
+++ b/Source/cmMessenger.cxx
@@ -124,9 +124,9 @@ void displayMessage(MessageType t, std::ostringstream& msg)
if (t == MessageType::FATAL_ERROR || t == MessageType::INTERNAL_ERROR ||
t == MessageType::DEPRECATION_ERROR || t == MessageType::AUTHOR_ERROR) {
cmSystemTools::SetErrorOccured();
- cmSystemTools::Message(msg.str().c_str(), "Error");
+ cmSystemTools::Message(msg.str(), "Error");
} else {
- cmSystemTools::Message(msg.str().c_str(), "Warning");
+ cmSystemTools::Message(msg.str(), "Warning");
}
}