From: stv Date: Thu, 10 Nov 2005 11:13:54 +0000 (+0000) Subject: no message X-Git-Tag: V3_1_0a3~35 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b901416596671bf43af82f9336fa67a1bc5a76a8;p=modules%2Fgui.git no message --- diff --git a/src/SUIT/SUIT_FileDlg.cxx b/src/SUIT/SUIT_FileDlg.cxx index cb8a71b69..7fe375414 100755 --- a/src/SUIT/SUIT_FileDlg.cxx +++ b/src/SUIT/SUIT_FileDlg.cxx @@ -251,7 +251,7 @@ bool SUIT_FileDlg::acceptData() if ( isOpenDlg() ) if ( mode() == ExistingFiles ) { QStringList fileNames = selectedFiles(); - for ( int i = 0; i < fileNames.count(); i++ ) { + for ( int i = 0; i < (int)fileNames.count(); i++ ) { if ( !myValidator->canOpen( fileNames[i] ) ) return false; } @@ -325,10 +325,12 @@ void SUIT_FileDlg::addExtension() QRegExp anExtRExp( "^("+ aPattern + ")$" ); // Check if the current file extension matches the pattern - if ( anExtRExp.match( anExt ) < 0 ) { + if ( anExtRExp.match( anExt ) < 0 ) + { // find first appropriate extension in the selected filter // (it should be without wildcard symbols) - for ( int i = 0; i < extList.count(); i++ ) { + for ( int i = 0; i < (int)extList.count(); i++ ) + { QString newExt = extList[i].replace( QRegExp( "[\\\\][+]" ),"+" ); int res = newExt.findRev( '.' ); if ( res >= 0 )