#include <SUIT_TreeSync.h>
#include <SUIT_DataObjectIterator.h>
-#include "SALOMEDS_Tool.hxx"
-
#include <SALOMEconfig.h>
#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 */
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;
}
bool SalomeApp_DataModelSync::isEqual( const kerPtr& p, const suitPtr& q ) const
{
LightApp_DataObject* obj = dynamic_cast<LightApp_DataObject*>( 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
#include <qptrlist.h>
#include "utilities.h"
-#include "string.h"
-#include "vector.h"
-#include "SALOMEDS_Tool.hxx"
+#include <string>
+#include <vector>
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SALOME_Exception)
+#include "SALOMEDS_Tool.hxx"
+
/*!
Constructor.
*/