]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Conversion between C-string and STL-string.
authormkr <mkr@opencascade.com>
Fri, 18 Nov 2005 07:54:45 +0000 (07:54 +0000)
committermkr <mkr@opencascade.com>
Fri, 18 Nov 2005 07:54:45 +0000 (07:54 +0000)
src/SalomeApp/SalomeApp_Study.cxx

index 98b68ca27ec5402ab1345da10456d6f1ef336fb4..d9a25aef6b4c02821646f54bdd66a988452dd838 100644 (file)
@@ -595,7 +595,7 @@ void SalomeApp_Study::children( const QString& entry, QStringList& child_entries
   while( anIter->More() )
   {
     _PTR(SObject) val( anIter->Value() );
-    child_entries.append( val->GetID() );
+    child_entries.append( val->GetID().c_str() );
     anIter->Next();
   }
 }
@@ -607,6 +607,6 @@ void SalomeApp_Study::components( QStringList& comps ) const
     _PTR(SComponent) aComponent ( it->Value() );
     if( aComponent && aComponent->ComponentDataType() == "Interface Applicative" )
       continue; // skip the magic "Interface Applicative" component
-    comps.append( aComponent->ComponentDataType() );
+    comps.append( aComponent->ComponentDataType().c_str() );
   }
 }