Replace DoxygenTranslator debug parameters with a single flags one.
This makes the code more readable and more extensible as more flags are easier to add in the future than more boolean parameters. No user-visible changes.
This commit is contained in:
parent
6cce652762
commit
f684242467
8 changed files with 45 additions and 32 deletions
|
|
@ -274,8 +274,8 @@ void JavaDocConverter::fillStaticTables()
|
|||
"&rarr");
|
||||
}
|
||||
|
||||
JavaDocConverter::JavaDocConverter(bool debugTranslator, bool debugParser) :
|
||||
DoxygenTranslator(debugTranslator, debugParser)
|
||||
JavaDocConverter::JavaDocConverter(int flags) :
|
||||
DoxygenTranslator(flags)
|
||||
{
|
||||
fillStaticTables();
|
||||
}
|
||||
|
|
@ -933,7 +933,7 @@ String *JavaDocConverter::makeDocumentation(Node *node)
|
|||
|
||||
// entityList.sort(CompareDoxygenEntities()); sorting currently not used,
|
||||
|
||||
if (debug) {
|
||||
if (m_flags & debug_translator) {
|
||||
std::cout << "---RESORTED LIST---" << std::endl;
|
||||
printTree(entityList);
|
||||
}
|
||||
|
|
@ -964,7 +964,7 @@ String *JavaDocConverter::makeDocumentation(Node *node)
|
|||
|
||||
javaDocString += "\n */\n";
|
||||
|
||||
if (debug) {
|
||||
if (m_flags & debug_translator) {
|
||||
std::cout << "\n---RESULT IN JAVADOC---" << std::endl;
|
||||
std::cout << javaDocString;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue