From ab17091385be6ddb41715e6b27fd6de6a8b2941d Mon Sep 17 00:00:00 2001 From: albert-github Date: Sun, 31 Jan 2021 13:43:51 +0100 Subject: Remove deprecated warnings for endl in doxywizard 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`. --- addon/doxywizard/expert.cpp | 16 ++++++++-------- addon/doxywizard/inputstrlist.cpp | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/addon/doxywizard/expert.cpp b/addon/doxywizard/expert.cpp index 7fd7df3..a50ff2b 100644 --- a/addon/doxywizard/expert.cpp +++ b/addon/doxywizard/expert.cpp @@ -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(); @@ -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(); @@ -797,7 +797,7 @@ void Expert::saveTopic(QTextStream &t,QDomElement &elem,QTextCodec *codec, t << " "; option->writeValue(t,codec); } - t << endl; + t << "\n"; } } } @@ -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); diff --git a/addon/doxywizard/inputstrlist.cpp b/addon/doxywizard/inputstrlist.cpp index cdc7d14..9d0bd66 100644 --- a/addon/doxywizard/inputstrlist.cpp +++ b/addon/doxywizard/inputstrlist.cpp @@ -250,7 +250,7 @@ void InputStrList::writeValue(QTextStream &t,QTextCodec *codec) { if (!first) { - t << " \\" << endl; + t << " \\\n"; t << " "; } first=false; -- cgit v0.12