diff --git a/src/meshlab/additionalgui.cpp b/src/meshlab/additionalgui.cpp index bd3e0e5c3..2a33f261b 100644 --- a/src/meshlab/additionalgui.cpp +++ b/src/meshlab/additionalgui.cpp @@ -290,7 +290,7 @@ PrimitiveButton::~PrimitiveButton() } -void PrimitiveButton::paintEvent( QPaintEvent * event ) +void PrimitiveButton::paintEvent( QPaintEvent * /*event*/ ) { QStylePainter painter(this); QStyleOptionButton option; @@ -397,7 +397,7 @@ void MLScriptEditor::resizeEvent( QResizeEvent* e) narea->setGeometry(QRect(cr.left(), cr.top(), lineNumberAreaWidth(), cr.height())); } -void MLScriptEditor::updateLineNumberAreaWidth( int newBlockCount) +void MLScriptEditor::updateLineNumberAreaWidth( int /*newBlockCount*/) { setViewportMargins(lineNumberAreaWidth(), 0, 0, 0); } @@ -496,7 +496,7 @@ void MLScriptEditor::keyPressEvent( QKeyEvent * e ) // } //} -void MLScriptEditor::showAutoComplete( QKeyEvent * e ) +void MLScriptEditor::showAutoComplete( QKeyEvent * /*e*/ ) { QString w = wordUnderTextCursor(); QTextCursor tc = textCursor(); @@ -589,7 +589,7 @@ void MLNumberArea::paintEvent(QPaintEvent* e) } MLSyntaxHighlighter::MLSyntaxHighlighter(const MLScriptLanguage& synt, QWidget* parent) -:QSyntaxHighlighter(parent),highlightingRules(),syntax(synt) +:QSyntaxHighlighter(parent),syntax(synt),highlightingRules() { /*HighlightingRule pvar; pvar.format.setForeground(Qt::red); @@ -791,4 +791,4 @@ bool MLAutoCompleterPopUp::event( QEvent *event ) return true; } return QListView::event(event); -} \ No newline at end of file +} diff --git a/src/meshlab/filterthread.cpp b/src/meshlab/filterthread.cpp index c7c9927fe..813eaf222 100644 --- a/src/meshlab/filterthread.cpp +++ b/src/meshlab/filterthread.cpp @@ -7,7 +7,7 @@ #include "filterthread.h" FilterThread::FilterThread(QString fname,MeshLabXMLFilterContainer *mfc, MeshDocument& md,EnvWrap& env,QObject *parent) -:QThread(parent), _fname(fname), _mfc(mfc),_md(md),_env(env) +:QThread(parent), _mfc(mfc), _fname(fname),_md(md),_env(env) { } @@ -29,4 +29,4 @@ void FilterThread::run() cur=this; _ret = _mfc->filterInterface->applyFilter(_fname, _md, _env, QCallBackLocal); cur=0; -} \ No newline at end of file +} diff --git a/src/meshlab/mainwindow_RunTime.cpp b/src/meshlab/mainwindow_RunTime.cpp index 05acaa3f9..59d0b38fa 100644 --- a/src/meshlab/mainwindow_RunTime.cpp +++ b/src/meshlab/mainwindow_RunTime.cpp @@ -1076,7 +1076,7 @@ void MainWindow::initDocumentMeshRenderState(MeshLabXMLFilterContainer* mfc, Env } } -void MainWindow::initDocumentRasterRenderState(MeshLabXMLFilterContainer* mfc, EnvWrap &env ) +void MainWindow::initDocumentRasterRenderState(MeshLabXMLFilterContainer* mfc, EnvWrap &/*env*/ ) { if (meshDoc() == NULL) return; @@ -1085,7 +1085,6 @@ void MainWindow::initDocumentRasterRenderState(MeshLabXMLFilterContainer* mfc, E if ((ar == MLXMLElNames::singleRasterArity)&& (meshDoc()->rm() != NULL)) { - RasterModel* rm = meshDoc()->rm(); meshDoc()->renderState().add(meshDoc()->rm()->id(),*meshDoc()->rm()); return; } @@ -1181,7 +1180,7 @@ void MainWindow::executeFilter(MeshLabXMLFilterContainer* mfc, EnvWrap& env, boo } try { - bool isinter = (mfc->xmlInfo->filterAttribute(fname,MLXMLElNames::filterIsInterruptible) == "true"); + /*bool isinter = */(mfc->xmlInfo->filterAttribute(fname,MLXMLElNames::filterIsInterruptible) == "true"); /*if (isinter) { showInterruptButton(true); diff --git a/src/meshlab/xmlgeneratorgui.cpp b/src/meshlab/xmlgeneratorgui.cpp index 8062356c4..04554515b 100644 --- a/src/meshlab/xmlgeneratorgui.cpp +++ b/src/meshlab/xmlgeneratorgui.cpp @@ -9,7 +9,7 @@ #include ParamGeneratorGUI::ParamGeneratorGUI(QWidget* parent /*= NULL*/ ) -:QFrame(parent),currentname(),parentitem(NULL) +:QFrame(parent),parentitem(NULL),currentname() { initUI(); initConnections(); @@ -379,7 +379,7 @@ void FilterGeneratorGUI::updateItemText( QTreeWidgetItem* parent,const QString& parent->setText(0,text); } -void FilterGeneratorGUI::updateFunctionName( const QString& fun ) +void FilterGeneratorGUI::updateFunctionName( const QString& /*fun*/ ) { QString nm = UsefulGUIFunctions::generateFunctionName(ui->nameLine->text()); ui->functionLine->setText(nm); @@ -479,7 +479,7 @@ void FilterGeneratorTab::expandCollapse(const bool exp,PrimitiveButton* pb,QFram pb->setPrimitiveElement(QStyle::PE_IndicatorArrowRight); } -void FilterGeneratorTab::paintEvent( QPaintEvent* p ) +void FilterGeneratorTab::paintEvent( QPaintEvent* /*p*/ ) { expandCollapse(jsexp,ui->jsbut,ui->jsframe); expandCollapse(guiexp,ui->guibut,ui->guiframe); @@ -509,7 +509,7 @@ void FilterGeneratorTab::setCode( const QString& code ) /*" + gaycolor.red() + "," + gaycolor.green() + "," + gaycolor.blue() + "*/ PluginGeneratorGUI::PluginGeneratorGUI(PluginManager& pman,QWidget* parent ) -:QDockWidget(parent),init(false),plugscriptname(),author(),mail(),doc(NULL),PM(pman),finfo(QApplication::applicationDirPath()) +:QDockWidget(parent),plugscriptname(),author(),mail(),init(false),finfo(QApplication::applicationDirPath()),doc(NULL),PM(pman) { QFrame* f = new QFrame(this); QGridLayout* lay = new QGridLayout(); @@ -536,7 +536,7 @@ PluginGeneratorGUI::PluginGeneratorGUI(PluginManager& pman,QWidget* parent ) } -void PluginGeneratorGUI::addNewFilter( const MLXMLPluginInfo::XMLMap& filter ) +void PluginGeneratorGUI::addNewFilter( const MLXMLPluginInfo::XMLMap& /*filter*/ ) { } @@ -546,7 +546,7 @@ PluginGeneratorGUI::~PluginGeneratorGUI() } -void PluginGeneratorGUI::paintEvent( QPaintEvent *event ) +void PluginGeneratorGUI::paintEvent( QPaintEvent */*event*/ ) { if (!init) { @@ -847,7 +847,7 @@ void PluginGeneratorGUI::save( const QString& filepath,const bool generatecpp) QString xml = generateXML(tree); //QDomDocument has been introduced only in order to indent the xml code QDomDocument doc; - bool ret = doc.setContent(xml,false); + doc.setContent(xml,false); xml = doc.toString(); QFile file(filepath); if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) @@ -918,7 +918,7 @@ void PluginGeneratorGUI::updateTabTitle( const QString& name,QWidget* wid) void PluginGeneratorGUI::validateFilterName( const QString& name,FilterGeneratorGUI* wid ) { QStringList ls; - int widind = getPageIndexOfWidget(wid); +// int widind = getPageIndexOfWidget(wid); for(int ii = 0;ii < tabs->count();++ii) ls.push_back(tabs->tabText(ii)); QString res = UsefulGUIFunctions::changeNameIfAlreadyInList(name,ls);