Skip to content

Commit

Permalink
Documentation: fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Jan 18, 2017
1 parent 31e9b5a commit 792e626
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Gui/DocumentationManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,32 +121,26 @@ DocumentationManager::handler(QHttpRequest *req,
// override static docs
// plugin pages are generated only if they don't exist
QString staticPage, dynamicPage;
bool isPlugin = false;
bool isPrefs = false;
bool isStatic = false;
if ( page.startsWith( QString::fromUtf8("/plugins/") ) ) {
isPlugin = true;
isStatic = true;
staticPage = page;
dynamicPage = page;
dynamicPage.replace( QString::fromUtf8(".html"), QString::fromUtf8("") ).replace( QString::fromUtf8("/plugins/"), QString::fromUtf8("/_plugin.html?id=") );
}
if ( page.startsWith( QString::fromUtf8("/_plugin.html?id=") ) ) {
isPlugin = true;
isStatic = false;
staticPage = page;
staticPage.replace( QString::fromUtf8("/_plugin.html?id="), QString::fromUtf8("/plugins/") );
staticPage += QString::fromUtf8(".html");
dynamicPage = page;
}
if ( page == QString::fromUtf8("/_prefs.html") ) {
isPrefs = true;
isStatic = true;
staticPage = page;
dynamicPage = QString::fromUtf8("/_prefsLive.html");
}
if ( page == QString::fromUtf8("/_prefsLive.html") ) {
isPrefs = true;
isStatic = false;
staticPage = QString::fromUtf8("/_prefs.html");
dynamicPage = page;
Expand Down

0 comments on commit 792e626

Please sign in to comment.