Explorar el Código

apply modernize-use-using via clang-tidy

ran
run-clang-tidy-14.py -header-filter='.*' -checks='-*,modernize-use-using' -fix

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
Matthieu Gallien hace 3 años
padre
commit
9b7d1add52
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 1 1
      src/csync/csync.h
  2. 2 2
      test/csync/vio_tests/check_vio_ext.cpp

+ 1 - 1
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;

+ 2 - 2
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()