the qstring should be converted to char* with help of toLatin1().constData()

This commit is contained in:
asl 2008-01-23 13:13:54 +00:00
parent 295a129b26
commit 26f1aaf3ed
3 changed files with 3 additions and 3 deletions

View 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());

View 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;

View 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