Salome HOME
Fix for registering parameters in command line mode
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetSelectorStore.cpp
index d9ed9a3667230915424e70dbd0bad1134cf757fc..8c8c9b259c7f01416380926928a7fd5addda32eb 100755 (executable)
@@ -61,7 +61,7 @@ void ModuleBase_WidgetSelectorStore::restoreAttributeValue(const AttributePtr& t
 {
   std::string aType = theAttribute->attributeType();
   if (aType == ModelAPI_AttributeSelectionList::typeId()) {
-    AttributeSelectionListPtr aSelectionListAttr = 
+    AttributeSelectionListPtr aSelectionListAttr =
                    std::dynamic_pointer_cast<ModelAPI_AttributeSelectionList>(theAttribute);
     aSelectionListAttr->setSelectionType(mySelectionType);
     // restore selection in the attribute. Indeed there is only one stored object
@@ -70,7 +70,7 @@ void ModuleBase_WidgetSelectorStore::restoreAttributeValue(const AttributePtr& t
       aSelectionListAttr->removeLast();
   }
   else if (aType == ModelAPI_AttributeRefList::typeId()) {
-    AttributeRefListPtr aRefListAttr = 
+    AttributeRefListPtr aRefListAttr =
                          std::dynamic_pointer_cast<ModelAPI_AttributeRefList>(theAttribute);
     // restore objects in the attribute. Indeed there is only one stored object
     int aCountAppened = aRefListAttr->size() - mySelectionCount;
@@ -87,7 +87,7 @@ void ModuleBase_WidgetSelectorStore::restoreAttributeValue(const AttributePtr& t
   }
   else {
     ModuleBase_Tools::setObject(theAttribute, myObject, myShape, theWorkshop, true, true);
-    AttributeRefAttrPtr aRefAttr = 
+    AttributeRefAttrPtr aRefAttr =
       std::dynamic_pointer_cast<ModelAPI_AttributeRefAttr>(theAttribute);
     if (aRefAttr) {
       if (!myIsObject)