]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
the qstring should be converted to char* with help of toLatin1().constData()
authorasl <asl@opencascade.com>
Wed, 23 Jan 2008 13:13:54 +0000 (13:13 +0000)
committerasl <asl@opencascade.com>
Wed, 23 Jan 2008 13:13:54 +0000 (13:13 +0000)
src/GEOMGUI/GEOMGUI_OCCSelector.cxx
src/GEOMGUI/GEOMGUI_Selection.cxx
src/GEOMGUI/GEOM_Displayer.cxx

index 657f741494981a51bf420bd3d493d6cf10ccbfcb..7b81f86d99331a4a467ac798323c1840a155746d 100644 (file)
@@ -201,7 +201,7 @@ void GEOMGUI_OCCSelector::setSelection( const SUIT_DataOwnerPtrList& aList )
 #ifndef WNT
       if ( indexesMap.IsBound( TCollection_AsciiString(entry.toLatin1().data())))
 #else
-         if ( indexesMap.IsBound( (char*)entry.toLatin1()))
+         if ( indexesMap.IsBound( entry.toLatin1().data() ) )
 #endif
       {
        TColStd_IndexedMapOfInteger& subIndexes = indexesMap.ChangeFind(entry.toLatin1().data());
index c2f17a13eeb5f9e8fc762fff0d41ddb6b78a1dd0..e8b30cdda8bb1f68ac06d9264eae02234bcb5bf0 100644 (file)
@@ -105,7 +105,7 @@ bool GEOMGUI_Selection::isVisible( const int index ) const
   GEOM::GEOM_Object_var obj = getObject( index );
   SALOME_View* view = GEOM_Displayer::GetActiveView();
   if ( !CORBA::is_nil( obj ) && view ) {
-    Handle(SALOME_InteractiveObject) io = new SALOME_InteractiveObject( entry( index ).toLatin1(), "GEOM", "TEMP_IO" );
+    Handle(SALOME_InteractiveObject) io = new SALOME_InteractiveObject( entry( index ).toLatin1().constData(), "GEOM", "TEMP_IO" );
     return view->isVisible( io );
   }
   return false;
index 15abb8accdf4c76b6fd502c2b1704e72c8aaacbc..4309536cef28920771f4832a086e30249ce8b5e9 100644 (file)
@@ -842,7 +842,7 @@ SALOME_Prs* GEOM_Displayer::buildPresentation( const QString& entry,
     if ( prs )
     {
       Handle( SALOME_InteractiveObject ) theIO = new SALOME_InteractiveObject();
-      theIO->setEntry( entry.toLatin1() );
+      theIO->setEntry( entry.toLatin1().constData() );
       if ( !theIO.IsNull() )
       {
        // set interactive object