]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Compilation problems with "FeaturePtr()" on linux resolved.
authorSergey BELASH <belash.sergey@opencascade.com>
Mon, 14 Apr 2014 12:10:04 +0000 (16:10 +0400)
committerSergey BELASH <belash.sergey@opencascade.com>
Mon, 14 Apr 2014 12:10:04 +0000 (16:10 +0400)
src/XGUI/XGUI_DocumentDataModel.cpp

index 5e599abec1f0dd274e791ce3c5789c7217909b9f..9ccc7f643901885c2ec076a5274d3bd6f5e52deb 100644 (file)
@@ -253,7 +253,7 @@ FeaturePtr XGUI_DocumentDataModel::feature(const QModelIndex& theIndex) const
 {
   QModelIndex aIndex = toSourceModelIndex(theIndex);
   if (!hasSubModel(aIndex.model())) 
-    return 0;
+    return FeaturePtr();
 
   const XGUI_FeaturesModel* aModel = dynamic_cast<const XGUI_FeaturesModel*>(aIndex.model());
   return aModel->feature(aIndex);
@@ -295,4 +295,4 @@ bool XGUI_DocumentDataModel::hasSubModel(const QAbstractItemModel* theModel) con
     if ((*aIt) == theModel)
       return true;
   return false;
-}
\ No newline at end of file
+}