COMMON: Cleanup: Use StringArray instead of custom type.

This commit is contained in:
Johannes Schickel 2016-03-01 19:17:35 +01:00
parent fd5799aa19
commit b8fb9e6a51
2 changed files with 3 additions and 2 deletions

View File

@ -262,7 +262,7 @@ bool MacResManager::exists(const String &fileName) {
return false;
}
void MacResManager::listFiles(Array<String> &files, const String &pattern) {
void MacResManager::listFiles(StringArray &files, const String &pattern) {
// Base names discovered so far.
typedef HashMap<String, bool, IgnoreCase_Hash, IgnoreCase_EqualTo> BaseNameSet;
BaseNameSet baseNames;

View File

@ -33,6 +33,7 @@
#include "common/array.h"
#include "common/fs.h"
#include "common/str.h"
#include "common/str-array.h"
#ifndef COMMON_MACRESMAN_H
#define COMMON_MACRESMAN_H
@ -89,7 +90,7 @@ public:
* @param pattern Pattern to match against. Taking String::matchPattern's
* format.
*/
static void listFiles(Array<String> &files, const String &pattern);
static void listFiles(StringArray &files, const String &pattern);
/**
* Close the Mac data/resource fork pair.