cppuhelper/source/paths.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 27f9a9cfa76fa584477e89f13b33720b5edbd570
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Wed Mar 22 21:43:09 2023 +0100
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Wed Mar 22 21:51:01 2023 +0000

    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 <sberg...@redhat.com>

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();

Reply via email to