From: Claudio Cambra Date: Fri, 18 Aug 2023 08:58:28 +0000 (+0800) Subject: Define private lock file patterns as const std::array X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~9^2~19^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=da62e6615dfcc1ac3cd0dfcd696ea23eec93c552;p=nextcloud-desktop.git Define private lock file patterns as const std::array Signed-off-by: Claudio Cambra --- 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) {