From da62e6615dfcc1ac3cd0dfcd696ea23eec93c552 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Fri, 18 Aug 2023 16:58:28 +0800 Subject: [PATCH] Define private lock file patterns as const std::array Signed-off-by: Claudio Cambra --- src/gui/folderwatcher.cpp | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/gui/folderwatcher.cpp b/src/gui/folderwatcher.cpp index 51c878ea9..74f716a7c 100644 --- a/src/gui/folderwatcher.cpp +++ b/src/gui/folderwatcher.cpp @@ -19,15 +19,6 @@ #include "account.h" #include "capabilities.h" -#include - -#include -#include -#include -#include -#include -#include - #if defined(Q_OS_WIN) #include "folderwatcher_win.h" #elif defined(Q_OS_MAC) @@ -39,9 +30,19 @@ #include "folder.h" #include "filesystem.h" +#include +#include +#include +#include +#include +#include + +#include +#include + namespace { -const char *lockFilePatterns[] = {".~lock.", "~$"}; +const std::array lockFilePatterns = {".~lock.", "~$"}; QString filePathLockFilePatternMatch(const QString &path) { -- 2.30.2