From 58b7fe65453f1d4b25537950de2277af2951fd85 Mon Sep 17 00:00:00 2001 From: Alex Neundorf Date: Sun, 14 Aug 2011 17:17:01 +0200 Subject: Use cout instead of printf() Alex --- Source/cmQtAutomoc.cxx | 16 ++++++++-------- 1 file 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; iRunMocFailed = true; cmSystemTools::RemoveFile(mocFilePath.c_str()); -- cgit v0.12