diff options
Diffstat (limited to 'qtools/qdir.cpp')
-rw-r--r-- | qtools/qdir.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qtools/qdir.cpp b/qtools/qdir.cpp index ed7ed99..d0c1233 100644 --- a/qtools/qdir.cpp +++ b/qtools/qdir.cpp @@ -1038,8 +1038,8 @@ bool QDir::match( const QStringList &filters, const QString &fileName ) QStringList::ConstIterator sit = filters.begin(); bool matched = FALSE; for ( ; sit != filters.end(); ++sit ) { - QRegExp regexp( *sit, FALSE, TRUE ); - if ( regexp.match( fileName ) != -1 ) { + QRegExp regexp( (*sit).data(), FALSE, TRUE ); + if ( regexp.match( fileName.data() ) != -1 ) { matched = TRUE; break; } |