Assume there is QRegExp regex
(wildcard) and QDirIterator dit
. If they are identical, .i.e. they should match. Why does this
QString s = dirIterator.fileName();
if(ignore.exactMatch(s))
continue;
match and the following not:
if(ignore.exactMatch(dirIterator.fileName()))
continue;
I dont see anydifference, except that exact match accepts a const ref and in the latter case there is a rvalue. But this shouldnt matter, should it?