Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>2022-09-30 20:56:31 +0300
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>2022-10-04 02:32:46 +0300
commit9b7d1add529b00e3b5e247259f6b92d615c44795 (patch)
tree75fa011fae8be149d762afe9aa4e97f426c09801
parente5d5471fb6c24bcf7ac4a57a35328fa5f3c5a0a6 (diff)
apply modernize-use-using via clang-tidyci/useUsing
ran run-clang-tidy-14.py -header-filter='.*' -checks='-*,modernize-use-using' -fix Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
-rw-r--r--src/csync/csync.h2
-rw-r--r--test/csync/vio_tests/check_vio_ext.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/csync/csync.h b/src/csync/csync.h
index 0c418f9ad..8796a9d21 100644
--- a/src/csync/csync.h
+++ b/src/csync/csync.h
@@ -165,7 +165,7 @@ Q_ENUM_NS(ItemType)
using namespace CSyncEnums;
using CSYNC_STATUS = CSyncEnums::csync_status_codes_e;
-typedef struct csync_file_stat_s csync_file_stat_t;
+using csync_file_stat_t = struct csync_file_stat_s;
struct OCSYNC_EXPORT csync_file_stat_s {
time_t modtime = 0;
diff --git a/test/csync/vio_tests/check_vio_ext.cpp b/test/csync/vio_tests/check_vio_ext.cpp
index 193a9be47..754227121 100644
--- a/test/csync/vio_tests/check_vio_ext.cpp
+++ b/test/csync/vio_tests/check_vio_ext.cpp
@@ -44,10 +44,10 @@ int oc_mkdir(const QString &path)
static mbchar_t wd_buffer[WD_BUFFER_SIZE];
-typedef struct {
+using statevar = struct {
QByteArray result;
QByteArray ignored_dir;
-} statevar;
+};
/* remove the complete test dir */
static int wipe_testdir()