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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user