summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-03-22 21:43:09 +0100
committerStephan Bergmann <sbergman@redhat.com>2023-03-22 21:51:01 +0000
commit27f9a9cfa76fa584477e89f13b33720b5edbd570 (patch)
tree3319f52e40c551f18eb9d9f03cd624bf3e834237 /cppuhelper
parent667f5f87dee072f6737ee6b6491ed53b7cf154a7 (diff)
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>
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/source/paths.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cppuhelper/source/paths.cxx b/cppuhelper/source/paths.cxx
index dd8fe56df2bf..28a1d34658b3 100644
--- a/cppuhelper/source/paths.cxx
+++ b/cppuhelper/source/paths.cxx
@@ -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();