From 360f52946ad35290845682cd2be69c3551bc56fe Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Wed, 29 Jul 2020 19:00:25 +0200 Subject: [PATCH] move tmp variable in a more appropriate scope --- src/meshlab/customDialog.cpp | 1 + src/meshlab/customDialog.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meshlab/customDialog.cpp b/src/meshlab/customDialog.cpp index 187e9c9af..4a8ae9781 100644 --- a/src/meshlab/customDialog.cpp +++ b/src/meshlab/customDialog.cpp @@ -132,6 +132,7 @@ SettingDialog::SettingDialog( RichParameter* currentPar, RichParameter* defaultP dialoglayout->addWidget(closebut,1,4); RichParameterCopyConstructor cp; + RichParameterSet tmpParSet; curPar->accept(cp); tmppar = cp.lastCreated; tmpParSet.addParam(tmppar); diff --git a/src/meshlab/customDialog.h b/src/meshlab/customDialog.h index 006855ab0..33872acba 100644 --- a/src/meshlab/customDialog.h +++ b/src/meshlab/customDialog.h @@ -49,7 +49,6 @@ private: RichParameter* curPar; RichParameter* defPar; RichParameter* tmppar; - RichParameterSet tmpParSet; QPushButton* savebut; QPushButton* applybut; QPushButton* resetbut;