Skip to content

Commit

Permalink
Remove deprecated warnings for endl in doxywizard
Browse files Browse the repository at this point in the history
Qt made `endl` deprecated (as of version 5.15) in favor of `Qt:endl`, to compile with Qt4 and (all) Qt5 we use the more system independent `\n`.
  • Loading branch information
albert-github committed Jan 31, 2021
1 parent 6a72018 commit ab17091
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions addon/doxywizard/expert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -760,13 +760,13 @@ void Expert::saveTopic(QTextStream &t,QDomElement &elem,QTextCodec *codec,
{
if (!brief)
{
t << endl;
t << "\n";
}
if (!condensed)
{
t << "#---------------------------------------------------------------------------" << endl;
t << "# " << elem.attribute(SA("docs")) << endl;
t << "#---------------------------------------------------------------------------" << endl;
t << "#---------------------------------------------------------------------------\n";
t << "# " << elem.attribute(SA("docs")) << "\n";
t << "#---------------------------------------------------------------------------\n";
}
// write options...
QDomElement childElem = elem.firstChildElement();
Expand All @@ -783,9 +783,9 @@ void Expert::saveTopic(QTextStream &t,QDomElement &elem,QTextCodec *codec,
Input *option = i.value();
if (option && !brief)
{
t << endl;
t << "\n";
t << convertToComment(option->templateDocs());
t << endl;
t << "\n";
}
bool toPrint = true;
if (option && condensed) toPrint = !option->isDefault();
Expand All @@ -797,7 +797,7 @@ void Expert::saveTopic(QTextStream &t,QDomElement &elem,QTextCodec *codec,
t << " ";
option->writeValue(t,codec);
}
t << endl;
t << "\n";
}
}
}
Expand All @@ -808,7 +808,7 @@ void Expert::saveTopic(QTextStream &t,QDomElement &elem,QTextCodec *codec,
bool Expert::writeConfig(QTextStream &t,bool brief, bool condensed)
{
// write global header
t << "# Doxyfile " << getDoxygenVersion() << endl << endl;
t << "# Doxyfile " << getDoxygenVersion() << "\n\n";
if (!brief && !condensed)
{
t << convertToComment(m_header);
Expand Down
2 changes: 1 addition & 1 deletion addon/doxywizard/inputstrlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ void InputStrList::writeValue(QTextStream &t,QTextCodec *codec)
{
if (!first)
{
t << " \\" << endl;
t << " \\\n";
t << " ";
}
first=false;
Expand Down

0 comments on commit ab17091

Please sign in to comment.