aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/archive.cpp2
-rw-r--r--common/fs.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/archive.cpp b/common/archive.cpp
index 8ec80938bc..cac6680e76 100644
--- a/common/archive.cpp
+++ b/common/archive.cpp
@@ -43,7 +43,7 @@ int Archive::matchPattern(StringList &list, const String &pattern) {
StringList::iterator it = allNames.begin();
for ( ; it != allNames.end(); it++) {
- if (matchString(it->c_str(), lowercasePattern.c_str())) {
+ if (it->matchString(lowercasePattern)) {
list.push_back(*it);
matches++;
}
diff --git a/common/fs.cpp b/common/fs.cpp
index 956bb8b184..246ec1cfaa 100644
--- a/common/fs.cpp
+++ b/common/fs.cpp
@@ -154,7 +154,7 @@ bool FilesystemNode::lookupFile(FSList &results, const Common::String &p, bool h
} else {
Common::String filename = entry->getName();
filename.toUppercase();
- if (Common::matchString(filename.c_str(), pattern.c_str())) {
+ if (filename.matchString(pattern)) {
results.push_back(*entry);
if (!exhaustive)