Salome HOME
Remove unused variable
authorvsv <vsv@opencascade.com>
Mon, 8 Oct 2018 10:18:21 +0000 (13:18 +0300)
committervsv <vsv@opencascade.com>
Mon, 8 Oct 2018 10:18:21 +0000 (13:18 +0300)
src/Config/Config_Translator.cpp
src/ModuleBase/ModuleBase_ParamSpinBox.cpp
src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp
src/XGUI/XGUI_DataModel.cpp

index 2c836f39246e1ee142a7b22942bb9e3022bf73fb..5edd8d3dd6e3aa432566b54738b7d961f87154d2 100644 (file)
@@ -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()) {
index 941a2e2cf0e359990ca18a23077d957e37e602b7..9990dfd200548ecfbe47a7075ecbbd4223c695f8 100644 (file)
@@ -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();
 }
 
index 9f3e7108745b0a4346d762d4e808449f988c384d..d81556ac18bbdd20b80d2ec258f5de0cf3632ecc 100755 (executable)
@@ -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;
index 509169cf0e5e9956770065209a49a0f6acaa21c6..45354a917da4d425f7fd9600eb4ab2d3f2e8ba36 100644 (file)
@@ -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);