From: stv Date: Wed, 22 Feb 2006 12:49:17 +0000 (+0000) Subject: Updated SALOME GUI sources for building under Ms Visual .NET on Windows platform. X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~92 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ce46f878a5b2b33d82fa515388897e048042537b;p=modules%2Fgui.git Updated SALOME GUI sources for building under Ms Visual .NET on Windows platform. --- diff --git a/src/SalomeApp/SalomeApp_DataModel.cxx b/src/SalomeApp/SalomeApp_DataModel.cxx index 5fcae7b7b..3b11eb669 100644 --- a/src/SalomeApp/SalomeApp_DataModel.cxx +++ b/src/SalomeApp/SalomeApp_DataModel.cxx @@ -20,11 +20,11 @@ #include #include -#include "SALOMEDS_Tool.hxx" - #include #include CORBA_SERVER_HEADER(SALOME_Exception) +#include "SALOMEDS_Tool.hxx" + //======================================================================= // name : SalomeApp_DataModelSync /*!Purpose : Auxiliary class for synchronizing tree of kernel objects and SUIT_DataObjects */ @@ -64,7 +64,7 @@ SalomeApp_DataModelSync::SalomeApp_DataModelSync( _PTR( Study ) aStudy, SUIT_Dat bool SalomeApp_DataModelSync::isCorrect( const kerPtr& so ) const { kerPtr refObj; - QString name = so->GetName(); + QString name( so->GetName().c_str() ); bool res = so && ( so->GetName().size() || so->ReferencedObject( refObj ) ); return res; } @@ -116,7 +116,7 @@ void SalomeApp_DataModelSync::deleteItemWithChildren( const suitPtr& p ) const bool SalomeApp_DataModelSync::isEqual( const kerPtr& p, const suitPtr& q ) const { LightApp_DataObject* obj = dynamic_cast( q ); - return ( !p && !q ) || ( obj && isCorrect( p ) && p->GetID()==obj->entry() ); + return ( !p && !q ) || ( obj && isCorrect( p ) && QString( p->GetID().c_str() ) == obj->entry() ); } kerPtr SalomeApp_DataModelSync::nullSrc() const diff --git a/src/SalomeApp/SalomeApp_Study.cxx b/src/SalomeApp/SalomeApp_Study.cxx index f3de08660..6b72dd880 100644 --- a/src/SalomeApp/SalomeApp_Study.cxx +++ b/src/SalomeApp/SalomeApp_Study.cxx @@ -33,14 +33,15 @@ #include #include "utilities.h" -#include "string.h" -#include "vector.h" -#include "SALOMEDS_Tool.hxx" +#include +#include #include #include CORBA_SERVER_HEADER(SALOME_Exception) +#include "SALOMEDS_Tool.hxx" + /*! Constructor. */