]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1383 Preview button: compilation correction on Linux
authornds <nds@opencascade.com>
Tue, 12 Apr 2016 11:57:20 +0000 (14:57 +0300)
committernds <nds@opencascade.com>
Tue, 12 Apr 2016 11:57:20 +0000 (14:57 +0300)
src/SHAPERGUI/SHAPERGUI.cpp
src/SHAPERGUI/SHAPERGUI.h
src/XGUI/XGUI_ActionsMgr.cpp
src/XGUI/XGUI_SalomeConnector.h

index ef44ec327d7d42b5ee8ccc38b71e84e78493bbd7..fecbbb031be34f7f22b092cc3709357fe7ef1249 100644 (file)
@@ -549,7 +549,7 @@ void SHAPERGUI::setFeatureInfo(const QString& theFeatureId,
   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;
 }
index ed007ff9102ed83eba791c91134496a030db074e..7e1c1435e0de388a9010df5765b4b8c7fb25fc92 100644 (file)
@@ -101,7 +101,7 @@ Q_OBJECT
   //! 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
index 8491751974072acaed09bd543d3c15496297d9a2..619302a9f8ba656e434472803708f573e8f58bd0 100644 (file)
@@ -248,7 +248,7 @@ QAction* XGUI_ActionsMgr::operationStateAction(OperationStateActionId theId, QOb
       }
       break;
       case Preview: {
-        aResult = new QAction("See the preview", theParent);
+        aResult = new QAction("See preview", theParent);
         aResult->setToolTip("Compute preview");
       }
       break;
index 3000b8350d0665d02fc3c50c658726726c7cd0a3..7596878a1de0e6eab8fdc382b59c1a6cb0432538 100644 (file)
@@ -109,7 +109,7 @@ class XGUI_EXPORT XGUI_SalomeConnector
   //! 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;