]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix Linux compilations problems
authormpv <mpv@opencascade.com>
Fri, 23 Dec 2016 08:22:30 +0000 (11:22 +0300)
committermpv <mpv@opencascade.com>
Fri, 23 Dec 2016 08:22:52 +0000 (11:22 +0300)
src/PartSet/CMakeLists.txt
src/XGUI/XGUI_DataModel.cpp

index 80c3e1c41484a24a388dc3926ab56ede6152fc1b..b9a6dc1f0880bfc1be44ba8715c96cc63af2efc8 100644 (file)
@@ -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})
index 0353bf0b394c2e1da1346eb628994e9a47a4dbd8..35ffdc34db0c641999677dd1245ad24aa86fa7a8 100644 (file)
@@ -119,7 +119,7 @@ void XGUI_DataModel::processEvent(const std::shared_ptr<Events_Message>& 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<Events_Message>& 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<Events_Message>& 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())