]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Disable compilation warnings
authorvsv <vsv@opencascade.com>
Wed, 12 Sep 2018 11:41:24 +0000 (14:41 +0300)
committervsv <vsv@opencascade.com>
Wed, 12 Sep 2018 11:41:40 +0000 (14:41 +0300)
src/XGUI/XGUI_Displayer.cpp
src/XGUI/XGUI_Selection.cpp

index 3ff7886e03f42dd300e4f0e33aca68a17707ba35..f0ac7b3b355543ec2d90bf2be69e3955557d619f 100644 (file)
@@ -1107,12 +1107,12 @@ void XGUI_Displayer::AddOrRemoveSelectedShapes(Handle(AIS_InteractiveContext) th
   /// If count of calls setSelectec is even, the object stays in the previous state
   /// (selected, deselected)
   /// OCCT: to write about the problem that active owners method returns one owner several times
-  QList<long> aSelectedIds; // Remember of selected address in order to avoid duplicates
+  QList<size_t> aSelectedIds; // Remember of selected address in order to avoid duplicates
   for (; anOwnersIt.More(); anOwnersIt.Next()) {
     anOwner = Handle(SelectMgr_EntityOwner)::DownCast (anOwnersIt.Value());
-    if (aSelectedIds.contains((long)anOwner.get()))
+    if (aSelectedIds.contains((size_t)anOwner.get()))
       continue;
-    aSelectedIds.append((long)anOwner.get());
+    aSelectedIds.append((size_t)anOwner.get());
 
     Handle(StdSelect_BRepOwner) BROwnr = Handle(StdSelect_BRepOwner)::DownCast(anOwner);
     if (!BROwnr.IsNull() && BROwnr->HasShape()) {
index da67a6bbb2aaa4fa7e886977f0db35d9d19e3d79..6962a47ac258331a7a4351b83ad2e13cefee7f17 100644 (file)
@@ -101,14 +101,14 @@ void XGUI_Selection::getSelectedInViewer(QList<ModuleBase_ViewerPrsPtr>& thePres
 {
   Handle(AIS_InteractiveContext) aContext = myWorkshop->viewer()->AISContext();
   if (!aContext.IsNull()) {
-    QList<long> aSelectedIds; // Remember of selected address in order to avoid duplicates
+    QList<size_t> aSelectedIds; // Remember of selected address in order to avoid duplicates
     for (aContext->InitSelected(); aContext->MoreSelected(); aContext->NextSelected()) {
       ModuleBase_ViewerPrsPtr aPrs(new ModuleBase_ViewerPrs());
       Handle(SelectMgr_EntityOwner) anOwner = aContext->SelectedOwner();
 
-      if (aSelectedIds.contains((long)anOwner.get()))
+      if (aSelectedIds.contains((size_t)anOwner.get()))
         continue;
-      aSelectedIds.append((long)anOwner.get());
+      aSelectedIds.append((size_t)anOwner.get());
 
       fillPresentation(aPrs, anOwner);
 
@@ -284,14 +284,14 @@ QList<ModuleBase_ViewerPrsPtr> XGUI_Selection::getHighlighted() const
   if (aContext.IsNull())
     return aPresentations;
 
-  QList<long> aSelectedIds; // Remember of selected address in order to avoid duplicates
+  QList<size_t> aSelectedIds; // Remember of selected address in order to avoid duplicates
   XGUI_Displayer* aDisplayer = myWorkshop->displayer();
   for (aContext->InitDetected(); aContext->MoreDetected(); aContext->NextDetected()) {
     Handle(SelectMgr_EntityOwner) anOwner = aContext->DetectedOwner();
     if (!anOwner.IsNull()) {
-      if (aSelectedIds.contains((long)anOwner.get()))
+      if (aSelectedIds.contains((size_t)anOwner.get()))
         continue;
-      aSelectedIds.append((long)anOwner.get());
+      aSelectedIds.append((size_t)anOwner.get());
 
       ModuleBase_ViewerPrsPtr aPrs(new ModuleBase_ViewerPrs());
       fillPresentation(aPrs, anOwner);