OUString::match -> OUString::startsWith

(which reads better in combination with the following
OUString::endsWithIgnoreAsciiCase)

Change-Id: Ia80e3d205e5e3b48f9df43757fb267258ba3f8ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149353
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2023-03-22 21:51:01 +00:00
parent 667f5f87de
commit 27f9a9cfa7
+1 -1
View File
@@ -101,7 +101,7 @@ bool cppu::nextDirectoryItem(osl::Directory & directory, OUString * url) {
if (stat.getFileType() != osl::FileStatus::Directory) { //TODO: symlinks
// Ignore backup and spurious junk files:
OUString name(stat.getFileName());
if (name.match(".") || !name.endsWithIgnoreAsciiCase(u".rdb")) {
if (name.startsWith(".") || !name.endsWithIgnoreAsciiCase(u".rdb")) {
SAL_WARN("cppuhelper", "ignoring <" << stat.getFileURL() << ">");
} else {
*url = stat.getFileURL();