Fix warnings

This commit is contained in:
Maxime Gimeno 2019-08-12 09:41:42 +02:00
parent 5ddbd8cca1
commit 47426af402
2 changed files with 6 additions and 2 deletions

View File

@ -460,7 +460,11 @@ void filterMenuOperations(QMenu* menu, QString filter, bool keep_from_here)
} }
} }
#ifdef Q_OS_WIN
void MainWindow::filterOperations(bool hide) void MainWindow::filterOperations(bool hide)
#else
void MainWindow::filterOperations(bool)
#endif
{ {
//on some platforms editing an open menu slows everything like hell, //on some platforms editing an open menu slows everything like hell,
//so we hide it for the time of the process. //so we hide it for the time of the process.

View File

@ -58,10 +58,10 @@ class Io_3mf_plugin:
}); });
menuFile->insertAction(CGAL::Three::Three::mainWindow()->findChild<QAction*>("actionSa_ve_Scene_as_Script"), actionSaveSceneTo3mf); menuFile->insertAction(CGAL::Three::Three::mainWindow()->findChild<QAction*>("actionSa_ve_Scene_as_Script"), actionSaveSceneTo3mf);
} }
QString name() const { return "3mf_io_plugin"; } QString name() const Q_DECL_OVERRIDE { return "3mf_io_plugin"; }
QString nameFilters() const { return QString nameFilters() const Q_DECL_OVERRIDE { return
"3mf files (*.3mf)"; } "3mf files (*.3mf)"; }