summaryrefslogtreecommitdiffstats
path: root/qtools/qdir.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2001-01-07 17:28:47 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2001-01-07 17:28:47 (GMT)
commit583cc3299ac171f473e4221b0b535ea616e4db03 (patch)
treee0730802a8bb7eac348a5e39cffb88118aa42020 /qtools/qdir.cpp
parent0c9bfb1e7fee31b0f35201e255096df4f6451035 (diff)
downloadDoxygen-583cc3299ac171f473e4221b0b535ea616e4db03.zip
Doxygen-583cc3299ac171f473e4221b0b535ea616e4db03.tar.gz
Doxygen-583cc3299ac171f473e4221b0b535ea616e4db03.tar.bz2
Release-1.2.4-20010107
Diffstat (limited to 'qtools/qdir.cpp')
-rw-r--r--qtools/qdir.cpp29
1 files changed, 5 insertions, 24 deletions
diff --git a/qtools/qdir.cpp b/qtools/qdir.cpp
index 185933a..ed7ed99 100644
--- a/qtools/qdir.cpp
+++ b/qtools/qdir.cpp
@@ -1012,14 +1012,10 @@ QStringList qt_makeFilterList( const QString &filter )
if ( filter.isEmpty() )
return QStringList();
- int i = filter.find( ' ', 0 );
- QChar sep( ' ' );
- if ( i == -1 ) {
- if ( filter.find( ';', 0 ) != -1 ) {
- sep = QChar( ';' );
- i = filter.find( sep, 0 );
- }
- }
+ QChar sep( ';' );
+ int i = filter.find( sep, 0 );
+ if ( i == -1 && filter.find( ' ', 0 ) != -1 )
+ sep = QChar( ' ' );
QStringList lst = QStringList::split( sep, filter );
QStringList lst2;
@@ -1027,22 +1023,7 @@ QStringList qt_makeFilterList( const QString &filter )
for ( ; it != lst.end(); ++it ) {
QString s = *it;
- if ( s[ (int)s.length() - 1 ] == ';' )
- s.remove( s.length() - 1, 1 );
- if ( s[0] == '\"' ) {
- s.remove( 0, 1 );
- while( ++it != lst.end() ) {
- QString s2 = *it;
- s += " "+s2;
- if ( s2[(int)s2.length() -1] == '\"' ) {
- s.remove( s.length() -1, 1 );
- break;
- }
- }
- }
- lst2 << s;
- if ( it == lst.end() )
- break;
+ lst2 << s.stripWhiteSpace();
}
return lst2;
}