From a0677c5ef0e56b38aa8517caa23d1e94313252e3 Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 23 Dec 2016 11:22:30 +0300 Subject: [PATCH] Fix Linux compilations problems --- src/PartSet/CMakeLists.txt | 2 +- src/XGUI/XGUI_DataModel.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/PartSet/CMakeLists.txt b/src/PartSet/CMakeLists.txt index 80c3e1c41..b9a6dc1f0 100644 --- a/src/PartSet/CMakeLists.txt +++ b/src/PartSet/CMakeLists.txt @@ -131,7 +131,7 @@ IF(${HAVE_SALOME}) INCLUDE_DIRECTORIES(${SALOME_KERNEL_INCLUDE}) ELSE(${HAVE_SALOME}) INCLUDE_DIRECTORIES(${APPELEMENTS_INCLUDE_DIR}) -ENDIF(NOT ${HAVE_SALOME}) +ENDIF(${HAVE_SALOME}) ADD_DEFINITIONS(-DPARTSET_EXPORTS ${CAS_DEFINITIONS}) diff --git a/src/XGUI/XGUI_DataModel.cpp b/src/XGUI/XGUI_DataModel.cpp index 0353bf0b3..35ffdc34d 100644 --- a/src/XGUI/XGUI_DataModel.cpp +++ b/src/XGUI/XGUI_DataModel.cpp @@ -119,7 +119,7 @@ void XGUI_DataModel::processEvent(const std::shared_ptr& theMess } else { int aFolderId = myXMLReader->rootFolderId(aObjType); if (aFolderId != -1) { - insertRow(aRow, createIndex(aFolderId, 0, Q_NULLPTR)); + insertRow(aRow, createIndex(aFolderId, 0, (void*)Q_NULLPTR)); } } } @@ -190,7 +190,7 @@ void XGUI_DataModel::processEvent(const std::shared_ptr& theMess // Process root sub-folder int aFolderId = myXMLReader->rootFolderId(aGroup); if (aFolderId != -1) { - QModelIndex aFolderIndex = createIndex(aFolderId, 0, Q_NULLPTR); + QModelIndex aFolderIndex = createIndex(aFolderId, 0, (void*)Q_NULLPTR); removeRow(aRow, aFolderIndex); //rebuildBranch(0, aRow); } @@ -274,7 +274,7 @@ void XGUI_DataModel::processEvent(const std::shared_ptr& theMess if (aGroup == myXMLReader->rootType()) // Update objects under root aStartId = foldersCount(); else // Update objects in folder under root - aParent = createIndex(folderId(aGroup), 0, Q_NULLPTR); + aParent = createIndex(folderId(aGroup), 0, (void*)Q_NULLPTR); } else { // Update a sub-document if (aGroup == myXMLReader->subType()) { @@ -556,7 +556,7 @@ QModelIndex XGUI_DataModel::index(int theRow, int theColumn, const QModelIndex & if (!theParent.isValid()) { if (theRow < aNbFolders) // Return first level folder index - return createIndex(theRow, theColumn, Q_NULLPTR); + return createIndex(theRow, theColumn, (void*)Q_NULLPTR); else { // return object under root index std::string aType = myXMLReader->rootType(); int aObjId = theRow - aNbFolders; @@ -678,7 +678,7 @@ QModelIndex XGUI_DataModel::parent(const QModelIndex& theIndex) const // return first level of folder index int aFolderId = myXMLReader->rootFolderId(aType); // Items in a one row must have the same parent - return createIndex(aFolderId, 0, Q_NULLPTR); + return createIndex(aFolderId, 0, (void*)Q_NULLPTR); } } else { if (aType == myXMLReader->subType()) -- 2.39.2