]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
RNV: Fix compilation problems on several platforms. V8_3_0b1
authorMaintenance team (INV) <mnt@vm-cos64-64-01.nnov.opencascade.com>
Fri, 24 Mar 2017 09:00:15 +0000 (12:00 +0300)
committerMaintenance team (INV) <mnt@vm-cos64-64-01.nnov.opencascade.com>
Fri, 24 Mar 2017 09:00:15 +0000 (12:00 +0300)
src/SMESH_SWIG_WITHIHM/libSMESH_Swig.cxx

index e0d44ec30fb3eaafeeebaae5b179c4311782ea0a..231dd33b5eb7a132013d734008dc5fdcad81441f 100644 (file)
@@ -638,22 +638,19 @@ SUIT_ViewWindow* getWnd( const int id )
   return resWnd;
 }
 
-
-actorAspect SMESH_Swig::GetActorAspect( const char* Mesh_Entry, int viewId )
+class TGetActorAspect: public SALOME_Event
 {
-  class TGetActorAspect: public SALOME_Event
+public:
+  typedef actorAspect TResult;
+  TResult myResult;
+  const char* _entry;
+  int _wid;
+  TGetActorAspect( const char* Mesh_Entry, int viewId )
   {
-  public:
-    typedef actorAspect TResult;
-    TResult myResult;
-    const char* _entry;
-    int _wid;
-    TGetActorAspect( const char* Mesh_Entry, int viewId )
-    {
-      _entry = Mesh_Entry;
-      _wid = viewId;
-    }
-    virtual void Execute()
+    _entry = Mesh_Entry;
+    _wid = viewId;
+  }
+  virtual void Execute()
     {
       SMESH_Actor* anActor;
       if (_wid)
@@ -685,8 +682,10 @@ actorAspect SMESH_Swig::GetActorAspect( const char* Mesh_Entry, int viewId )
       myResult.opacity= anActor->GetOpacity();
       MESSAGE("opacity: " << myResult.opacity);
     }
-  };
+};
 
+actorAspect SMESH_Swig::GetActorAspect( const char* Mesh_Entry, int viewId )
+{
   return ProcessEvent(new TGetActorAspect( Mesh_Entry, viewId));
 }