From: vsv Date: Mon, 8 Oct 2018 10:18:21 +0000 (+0300) Subject: Remove unused variable X-Git-Tag: V9_2_0a2~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=27e18cdd6803be98efed9402d610d59cacae3d69;p=modules%2Fshaper.git Remove unused variable --- diff --git a/src/Config/Config_Translator.cpp b/src/Config/Config_Translator.cpp index 2c836f392..5edd8d3dd 100644 --- a/src/Config/Config_Translator.cpp +++ b/src/Config/Config_Translator.cpp @@ -201,7 +201,7 @@ void Config_Translator::saveMissedTranslations() std::ofstream oFStream; // Delete old file - int aa = remove(aFile.c_str()); + remove(aFile.c_str()); oFStream.open(aFile, std::ofstream::out | std::ofstream::app); if (oFStream.is_open()) { diff --git a/src/ModuleBase/ModuleBase_ParamSpinBox.cpp b/src/ModuleBase/ModuleBase_ParamSpinBox.cpp index 941a2e2cf..9990dfd20 100644 --- a/src/ModuleBase/ModuleBase_ParamSpinBox.cpp +++ b/src/ModuleBase/ModuleBase_ParamSpinBox.cpp @@ -162,7 +162,6 @@ void ModuleBase_ParamSpinBox::setValue(double value) double ModuleBase_ParamSpinBox::value() const { - std::string aa = lineEdit()->text().toStdString(); return lineEdit()->text().toDouble(); } diff --git a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp index 9f3e71087..d81556ac1 100755 --- a/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp @@ -222,7 +222,6 @@ bool ModuleBase_WidgetMultiSelector::storeValueCustom() std::string aType = anAttribute->attributeType(); if (aType == ModelAPI_AttributeSelectionList::typeId()) { AttributeSelectionListPtr aSelectionListAttr = myFeature->data()->selectionList(attributeID()); - int aa = aSelectionListAttr->size(); std::string aMode = myTypeCtrl->textValue().toStdString(); if (myTypeCtrl->isVisible() && myIsFirst && (!myDefMode.empty())) aMode = myDefMode; diff --git a/src/XGUI/XGUI_DataModel.cpp b/src/XGUI/XGUI_DataModel.cpp index 509169cf0..45354a917 100644 --- a/src/XGUI/XGUI_DataModel.cpp +++ b/src/XGUI/XGUI_DataModel.cpp @@ -269,7 +269,6 @@ int XGUI_DataModel::columnCount(const QModelIndex& theParent) const //****************************************************** QModelIndex XGUI_DataModel::index(int theRow, int theColumn, const QModelIndex &theParent) const { - int aa = theParent.row(); ModuleBase_ITreeNode* aParentNode = (theParent.isValid()) ? (ModuleBase_ITreeNode*)theParent.internalPointer() : myRoot; ModuleBase_ITreeNode* aSubNode = aParentNode->subNode(theRow);