diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-01-28 14:35:51 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-01-28 14:35:51 (GMT) |
commit | 186d9b083db0e3fc77d9d92821e3cf45e06271da (patch) | |
tree | 0959f75743422467ab83bc128aeaa7003ac780ac /Source/cmCallVisualStudioMacro.cxx | |
parent | 1593e16d881bf74fd8981e1290d20f28191f1f0e (diff) | |
download | CMake-186d9b083db0e3fc77d9d92821e3cf45e06271da.zip CMake-186d9b083db0e3fc77d9d92821e3cf45e06271da.tar.gz CMake-186d9b083db0e3fc77d9d92821e3cf45e06271da.tar.bz2 |
cmSystemTools::Message: Add overload accepting std::string
Diffstat (limited to 'Source/cmCallVisualStudioMacro.cxx')
-rw-r--r-- | Source/cmCallVisualStudioMacro.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmCallVisualStudioMacro.cxx b/Source/cmCallVisualStudioMacro.cxx index ecfcfb9..ee5feee 100644 --- a/Source/cmCallVisualStudioMacro.cxx +++ b/Source/cmCallVisualStudioMacro.cxx @@ -46,7 +46,7 @@ static bool LogErrorsAsMessages; << std::endl; \ _hresult_oss.flags(std::ios::dec); \ _hresult_oss << __FILE__ << "(" << __LINE__ << ")"; \ - cmSystemTools::Message(_hresult_oss.str().c_str()); \ + cmSystemTools::Message(_hresult_oss.str()); \ } \ } @@ -446,7 +446,7 @@ int cmCallVisualStudioMacro::CallMacro(const std::string& slnFile, if (err && LogErrorsAsMessages) { std::ostringstream oss; oss << "cmCallVisualStudioMacro::CallMacro failed, err = " << err; - cmSystemTools::Message(oss.str().c_str()); + cmSystemTools::Message(oss.str()); } return 0; |