myFeaturesInfo.insert(theFeatureId, theMessage);
}
-const std::shared_ptr<Config_FeatureMessage>& SHAPERGUI::featureInfo(const QString& theFeatureId)
+std::shared_ptr<Config_FeatureMessage> SHAPERGUI::featureInfo(const QString& theFeatureId)
{
return myFeaturesInfo.contains(theFeatureId) ? myFeaturesInfo[theFeatureId] : NULL;
}
//! Returns XML information for the feature kind
//! \param theFeatureId a feature kind
//! \return theMessage a container of the feature XML properties
- virtual const std::shared_ptr<Config_FeatureMessage>& featureInfo(const QString& theFeatureId);
+ virtual std::shared_ptr<Config_FeatureMessage> featureInfo(const QString& theFeatureId);
//! Returns interface to Salome viewer
virtual ModuleBase_IViewer* viewer() const
}
break;
case Preview: {
- aResult = new QAction("See the preview", theParent);
+ aResult = new QAction("See preview", theParent);
aResult->setToolTip("Compute preview");
}
break;
//! Returns XML information for the feature kind
//! \param theFeatureId a feature kind
//! \return theMessage a container of the feature XML properties
- virtual const std::shared_ptr<Config_FeatureMessage>& featureInfo(const QString& theFeatureId) = 0;
+ virtual std::shared_ptr<Config_FeatureMessage> featureInfo(const QString& theFeatureId) = 0;
//! Returns interface to Salome viewer
virtual ModuleBase_IViewer* viewer() const = 0;