Skip to content

Commit

Permalink
Remove warning regarding unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmcarreira committed Oct 14, 2018
1 parent e6b2bec commit e3fa369
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ bool MainWindow::saveUrl(const QUrl &url)
return true;
}

void MainWindow::setCurrentEncoding(QTextCodec *codec, bool isUserRequest)
void MainWindow::setCurrentEncoding(QTextCodec *codec )
{
m_currentEncoding = codec;
// TODO: implement user warning and suggestion to reload the file.
Expand Down
2 changes: 1 addition & 1 deletion app/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private Q_SLOTS:
void updateCompleter();
/// Change the codec for the current document
/// @param isUserRequest set to true if the user requested the changement (in this case, the application should warn the user -- not implemented yet.).
void setCurrentEncoding(QTextCodec* codec, bool isUserRequest = false);
void setCurrentEncoding(QTextCodec* codec /*, bool isUserRequest = false */ );

private:
void createActions();
Expand Down
3 changes: 2 additions & 1 deletion app/tikzcommandinserter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ static TikzCommandList getChildCommands(QXmlStreamReader *xml, QList<TikzCommand

return commandList;
}

#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
static TikzCommandList getCommands(QXmlStreamReader *xml, QList<TikzCommand> *tikzCommandsList)
{
TikzCommandList commandList;
Expand All @@ -204,6 +204,7 @@ static TikzCommandList getCommands(QXmlStreamReader *xml, QList<TikzCommand> *ti
qCritical("Parse error in TikZ commands file at line %d, column %d:\n%s", int(xml->lineNumber()), int(xml->columnNumber()), qPrintable(xml->errorString()));
return commandList;
}
#endif

#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
static TikzCommandList loadChildCommandsJson(QJsonObject sectionObject, QList<TikzCommand> *tikzCommandsList)
Expand Down

0 comments on commit e3fa369

Please sign in to comment.