ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/XmlTools2/trunk/utilxmltools.cpp
(Generate patch)

Comparing XmlTools2/trunk/utilxmltools.cpp (file contents):
Revision 955 by iritscen, Tue Feb 11 17:08:41 2014 UTC vs.
Revision 964 by s10k, Mon Feb 24 15:36:44 2014 UTC

# Line 2 | Line 2
2  
3   namespace UtilXmlTools{
4  
5 < QStringList getAllXmlFilesByWildcard(const QString &wildcard){
5 > // As this will not likely be modified we use QVector instead of QList since it is more cache friendly
6 > QVector<QString> getAllXmlFilesByWildcard(const QString &wildcard){
7      QStringList validFilesMatching;
8      QStringList filesMatching;
9  
# Line 18 | Line 19 | QStringList getAllXmlFilesByWildcard(con
19          }
20      }
21  
22 <    return validFilesMatching;
22 >    return validFilesMatching.toVector();
23  
24   }
25  
26 < QStringList getAllPatchFilesByWildcard(const QString &wildcard){
26 > QVector<QString> getAllPatchFilesByWildcard(const QString &wildcard){
27      QStringList validFilesMatching;
28      QStringList filesMatching;
29  
# Line 38 | Line 39 | QStringList getAllPatchFilesByWildcard(c
39          }
40      }
41  
42 <    return validFilesMatching;
42 >    return validFilesMatching.toVector();
43  
44   }
45  

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)