From: Sergey BELASH Date: Mon, 14 Apr 2014 12:10:04 +0000 (+0400) Subject: Compilation problems with "FeaturePtr()" on linux resolved. X-Git-Tag: V_0.1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=de506aa3b9f027206e84edfeb22cbb3e097e2288;p=modules%2Fshaper.git Compilation problems with "FeaturePtr()" on linux resolved. --- diff --git a/src/XGUI/XGUI_DocumentDataModel.cpp b/src/XGUI/XGUI_DocumentDataModel.cpp index 5e599abec..9ccc7f643 100644 --- a/src/XGUI/XGUI_DocumentDataModel.cpp +++ b/src/XGUI/XGUI_DocumentDataModel.cpp @@ -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(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 +}