summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2011-08-14 15:17:01 (GMT)
committerAlex Neundorf <neundorf@kde.org>2011-08-14 15:17:01 (GMT)
commit58b7fe65453f1d4b25537950de2277af2951fd85 (patch)
treea6aed5278bbc7204e36086ad78c16cb3c0998dab
parent72caf4d1787bc464f68954853a4edc3cf169a5f0 (diff)
downloadCMake-58b7fe65453f1d4b25537950de2277af2951fd85.zip
CMake-58b7fe65453f1d4b25537950de2277af2951fd85.tar.gz
CMake-58b7fe65453f1d4b25537950de2277af2951fd85.tar.bz2
Use cout instead of printf()
Alex
-rw-r--r--Source/cmQtAutomoc.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/cmQtAutomoc.cxx b/Source/cmQtAutomoc.cxx
index 316d824..b03e9cf 100644
--- a/Source/cmQtAutomoc.cxx
+++ b/Source/cmQtAutomoc.cxx
@@ -405,7 +405,7 @@ bool cmQtAutomoc::RunAutomocQt4()
const std::string &absFilename = *it;
if (this->Verbose)
{
- printf("Checking -%s-\n", absFilename.c_str());
+ std::cout << "AUTOMOC: Checking " << absFilename << std::endl;
}
this->ParseCppFile(absFilename, includedMocs, notIncludedMocs);
}
@@ -419,7 +419,7 @@ bool cmQtAutomoc::RunAutomocQt4()
const std::string &absFilename = *it;
if (this->Verbose)
{
- printf("Checking -%s-\n", absFilename.c_str());
+ std::cout << "AUTOMOC: Checking " << absFilename << std::endl;
}
if (includedMocs.find(absFilename) == includedMocs.end()
&& notIncludedMocs.find(absFilename) == notIncludedMocs.end())
@@ -527,7 +527,7 @@ void cmQtAutomoc::ParseCppFile(const std::string& absFilename,
const std::string contentsString = this->ReadAll(absFilename);
if (contentsString.empty())
{
- std::cerr << "automoc4: empty source file: " << absFilename << std::endl;
+ std::cerr << "AUTOMOC: empty source file: " << absFilename << std::endl;
return;
}
const std::string absPath = cmsys::SystemTools::GetFilenamePath(
@@ -648,7 +648,7 @@ void cmQtAutomoc::ParseCppFile(const std::string& absFilename,
}
if (!headerFound)
{
- std::cerr << "automoc4: The file \"" << absFilename
+ std::cerr << "AUTOMOC: The file \"" << absFilename
<< "\" includes the moc file \"" << currentMoc
<< "\", but neither \"" << absPath << basename
<< '{' << this->Join(headerExtensions, ',')
@@ -660,7 +660,7 @@ void cmQtAutomoc::ParseCppFile(const std::string& absFilename,
}
else
{
- std::cerr << "automoc4: The file \"" << absFilename
+ std::cerr << "AUTOMOC: The file \"" << absFilename
<< "\" includes the moc file \"" << currentMoc
<< "\", but \"" << absPath << basename << '{'
<< this->Join(headerExtensions, ',') << '}'
@@ -728,9 +728,9 @@ bool cmQtAutomoc::GenerateMoc(const std::string& sourceFile,
{
for(int i=0; i<command.size(); i++)
{
- printf("%s ", command[i].c_str());
+ std::cout << command[i] << " ";
}
- printf("\n");
+ std::cout << std::endl;
}
std::string output;
@@ -738,7 +738,7 @@ bool cmQtAutomoc::GenerateMoc(const std::string& sourceFile,
bool result = cmSystemTools::RunSingleCommand(command, &output, &retVal);
if (!result || retVal)
{
- std::cerr << "automoc4: process for " << mocFilePath << " failed:\n"
+ std::cerr << "AUTOMOC: process for " << mocFilePath << " failed:\n"
<< output << std::endl;
this->RunMocFailed = true;
cmSystemTools::RemoveFile(mocFilePath.c_str());