//tag test_inParameter_name
if ((qName.compare(test_inParameter_name)==0)) {
- if(MYDEBUG) SCRUTE(parent);
- if(MYDEBUG) SCRUTE(grandparent);
+ if(MYDEBUG) SCRUTE(parent.toLatin1().data());
+ if(MYDEBUG) SCRUTE(grandparent.toLatin1().data());
if (grandparent.compare(test_inDataStreamParameter_list) == 0)
_inDataStreamParam.name = content ;
else
// Parameter out
- if(MYDEBUG) SCRUTE(qName);
+ if(MYDEBUG) SCRUTE(qName.toLatin1().data());
// tag test_outParameter_type
if ((qName.compare(test_outParameter_type)==0)) {
//tag test_outDataStreamParameter_name
if ((qName.compare(test_outDataStreamParameter_name)==0)) {
- if(MYDEBUG) SCRUTE(grandparent);
- if(MYDEBUG) SCRUTE(test_outDataStreamParameter_list);
+ if(MYDEBUG) SCRUTE(grandparent.toLatin1().data());
+ if(MYDEBUG) SCRUTE(test_outDataStreamParameter_list.toLatin1().data());
if (grandparent.compare(test_outDataStreamParameter_list) == 0)
_outDataStreamParam.name = content ;
else
//----------------------------------------------------------------------
bool SALOME_ModuleCatalog_Handler::characters(const QString& chars)
{
- content = (const char*)chars ;
+ content = chars.toLatin1().data() ;
return true;
}
false ); // skip empty entries
#else
//check for new format
- int isNew = QString( _general_path ).contains(SEPARATOR);
- if ( isNew > 0 ) {
+ if ( QString( _general_path ).contains(SEPARATOR) ) {
//using new format
- dirList = QStringList::split( SEPARATOR, _general_path,
- false ); // skip empty entries
+ dirList = QString( _general_path ).split( SEPARATOR, QString::SkipEmptyParts ); // skip empty entries
} else {
//support old format
- dirList = QStringList::split( OLD_SEPARATOR, _general_path,
- false ); // skip empty entries
+ dirList = QString( _general_path ).split( OLD_SEPARATOR, QString::SkipEmptyParts ); // skip empty entries
}
#endif
//QFileInfo fileInfo( dirList[ i ] );
QFileInfo fileInfo( dirList[ i ].replace( '\"', "" ) ); //remove inverted commas from filename
if ( fileInfo.isFile() && fileInfo.exists() ) {
- _parse_xml_file(fileInfo.filePath(),
+ _parse_xml_file(fileInfo.filePath().toLatin1().data(),
_general_module_list,
_general_path_list);
}
std::string s(name);
ParserComponent *C_parser = NULL;
- ParserPathPrefixes *pp = NULL;
+ //ParserPathPrefixes *pp = NULL; // VSR : commented : unused variable
SALOME_ModuleCatalog::Acomponent_ptr compo
= SALOME_ModuleCatalog::Acomponent::_nil();
SALOME_ModuleCatalog_Handler* handler = new SALOME_ModuleCatalog_Handler();
QFile xmlFile(file);
- QXmlInputSource source(xmlFile);
+ QXmlInputSource source(&xmlFile);
QXmlSimpleReader reader;
reader.setContentHandler( handler );
for (int i = 0;i < attrs.count();i++)
{
QString qName(attrs.localName(i));
- std::string content(attrs.value(i).latin1());
+ std::string content(attrs.value(i).toLatin1().data());
if ((qName.compare(QString(test_hostname)) == 0))
_resource.DataForSort._hostName = content;
bool SALOME_ResourcesCatalog_Handler::characters(const QString& chars)
{
- content = (const char *)chars ;
+ content = chars.toLatin1().data() ;
return true;
}
.arg( exception.message() )
.arg( exception.lineNumber() )
.arg( exception.columnNumber() );
- INFOS("parser error: " << errorProt.latin1());
+ INFOS("parser error: " << errorProt.toLatin1().data());
return QXmlDefaultHandler::fatalError( exception );
}
QFile file( _path_resources );
- if ( !file.open( IO_WriteOnly ) )
+ if ( !file.open( QIODevice::WriteOnly ) )
INFOS("WRITING ERROR !");
QTextStream ts( &file );
new SALOME_ResourcesCatalog_Handler(_resourcesList);
QFile xmlFile(_path_resources);
- QXmlInputSource source(xmlFile);
+ QXmlInputSource source(&xmlFile);
QXmlSimpleReader reader;
reader.setContentHandler( handler );