summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackLog.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-03-11 12:35:32 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-03-11 14:03:50 (GMT)
commitaf8a1643c1a42aa3b276a50bca10a4faab176764 (patch)
treee43581126113bdad071f92dbe531b5d7d1009660 /Source/CPack/cmCPackLog.cxx
parent21c573f682f9eafbc8d4402f7febbb1bec1cb86a (diff)
downloadCMake-af8a1643c1a42aa3b276a50bca10a4faab176764.zip
CMake-af8a1643c1a42aa3b276a50bca10a4faab176764.tar.gz
CMake-af8a1643c1a42aa3b276a50bca10a4faab176764.tar.bz2
Remove c_str calls when using stream APIs.
Use an ad-hoc clang tool for matching the calls which should be ported.
Diffstat (limited to 'Source/CPack/cmCPackLog.cxx')
-rw-r--r--Source/CPack/cmCPackLog.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/CPack/cmCPackLog.cxx b/Source/CPack/cmCPackLog.cxx
index 4e8bf0f..7befca0 100644
--- a/Source/CPack/cmCPackLog.cxx
+++ b/Source/CPack/cmCPackLog.cxx
@@ -169,27 +169,27 @@ void cmCPackLog::Log(int tag, const char* file, int line,
{
if ( error && !this->ErrorPrefix.empty() )
{
- *this->DefaultError << this->ErrorPrefix.c_str();
+ *this->DefaultError << this->ErrorPrefix;
}
else if ( warning && !this->WarningPrefix.empty() )
{
- *this->DefaultError << this->WarningPrefix.c_str();
+ *this->DefaultError << this->WarningPrefix;
}
else if ( output && !this->OutputPrefix.empty() )
{
- *this->DefaultOutput << this->OutputPrefix.c_str();
+ *this->DefaultOutput << this->OutputPrefix;
}
else if ( verbose && !this->VerbosePrefix.empty() )
{
- *this->DefaultOutput << this->VerbosePrefix.c_str();
+ *this->DefaultOutput << this->VerbosePrefix;
}
else if ( debug && !this->DebugPrefix.empty() )
{
- *this->DefaultOutput << this->DebugPrefix.c_str();
+ *this->DefaultOutput << this->DebugPrefix;
}
else if ( !this->Prefix.empty() )
{
- *this->DefaultOutput << this->Prefix.c_str();
+ *this->DefaultOutput << this->Prefix;
}
if ( useFileAndLine )
{