| 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 |
|
|
| 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 |
|
|
| 39 |
|
} |
| 40 |
|
} |
| 41 |
|
|
| 42 |
< |
return validFilesMatching; |
| 42 |
> |
return validFilesMatching.toVector(); |
| 43 |
|
|
| 44 |
|
} |
| 45 |
|
|