From de506aa3b9f027206e84edfeb22cbb3e097e2288 Mon Sep 17 00:00:00 2001 From: Sergey BELASH Date: Mon, 14 Apr 2014 16:10:04 +0400 Subject: [PATCH] Compilation problems with "FeaturePtr()" on linux resolved. --- src/XGUI/XGUI_DocumentDataModel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +} -- 2.39.2