summaryrefslogtreecommitdiff
path: root/cpp/src/slice2html/Gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2html/Gen.cpp')
-rw-r--r--cpp/src/slice2html/Gen.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/cpp/src/slice2html/Gen.cpp b/cpp/src/slice2html/Gen.cpp
index a5e03d6015f..1c4de107d54 100644
--- a/cpp/src/slice2html/Gen.cpp
+++ b/cpp/src/slice2html/Gen.cpp
@@ -11,6 +11,7 @@
#include <IceUtil/Functional.h>
#include <IceUtil/StringUtil.h>
#include <IceUtil/FileUtil.h>
+#include <IceUtil/ConsoleUtil.h>
#include <Slice/FileTracker.h>
#include <Gen.h>
@@ -1171,8 +1172,8 @@ Slice::GeneratorBase::getComment(const ContainedPtr& contained, const SyntaxTree
if(_warnOldCommentFiles.find(fileName) == _warnOldCommentFiles.end())
{
_warnOldCommentFiles.insert(fileName);
- cerr << fileName << ": warning: file contains old-style link syntax: `[" << literal << "]'"
- << endl;
+ consoleErr << fileName << ": warning: file contains old-style link syntax: `[" << literal << "]'"
+ << endl;
}
}
else if(s[i] == '{')
@@ -1211,8 +1212,8 @@ Slice::GeneratorBase::getComment(const ContainedPtr& contained, const SyntaxTree
if(summary && _warnSummary && summarySize > _warnSummary)
{
- cerr << contained->file() << ": warning: summary size (" << summarySize << ") exceeds " << _warnSummary
- << " characters: `" << comment << "'" << endl;
+ consoleErr << contained->file() << ": warning: summary size (" << summarySize << ") exceeds " << _warnSummary
+ << " characters: `" << comment << "'" << endl;
}
return comment;
@@ -1480,13 +1481,13 @@ Slice::GeneratorBase::warnOldStyleIdent(const string& str, const string& fileNam
lastName = newName.substr(pos + 1);
}
- cerr << fileName << ": warning: file contains old-style identifier syntax: `" << str << "'."
- << " Use `'" << newName << "'";
+ consoleErr << fileName << ": warning: file contains old-style identifier syntax: `" << str << "'."
+ << " Use `'" << newName << "'";
if(!alternateName.empty())
{
- cerr << " or `" << alternateName << "' if `" << lastName << "' is a member";
+ consoleErr << " or `" << alternateName << "' if `" << lastName << "' is a member";
}
- cerr << endl;
+ consoleErr << endl;
}
}