Browse Source

Use using declarations instead of typedef

PR #19458.
adaptive-webui-19844
Victor Chernyakin 9 months ago committed by GitHub
parent
commit
e4313d6651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .clang-tidy
  2. 2
      CODING_GUIDELINES.md
  3. 4
      src/base/bittorrent/speedmonitor.h
  4. 2
      src/base/types.h

1
.clang-tidy

@ -35,7 +35,6 @@ Checks: > @@ -35,7 +35,6 @@ Checks: >
-modernize-use-auto,
-modernize-use-nodiscard,
-modernize-use-trailing-return-type,
-modernize-use-using,
-readability-function-cognitive-complexity,
-readability-function-size,
-readability-identifier-length,

2
CODING_GUIDELINES.md

@ -276,7 +276,7 @@ struct StructName {}; @@ -276,7 +276,7 @@ struct StructName {};
enum EnumName {};
typedef QList<ClassName> SomeList;
using SomeList = QList<ClassName>;
namespace NamespaceName
{

4
src/base/bittorrent/speedmonitor.h

@ -64,8 +64,8 @@ struct Sample @@ -64,8 +64,8 @@ struct Sample
T upload {};
};
typedef Sample<qlonglong> SpeedSample;
typedef Sample<qreal> SpeedSampleAvg;
using SpeedSample = Sample<qlonglong>;
using SpeedSampleAvg = Sample<qreal>;
class SpeedMonitor
{

2
src/base/types.h

@ -40,4 +40,4 @@ enum class ShutdownDialogAction @@ -40,4 +40,4 @@ enum class ShutdownDialogAction
Hibernate
};
typedef QMap<QString, QString> QStringMap;
using QStringMap = QMap<QString, QString>;

Loading…
Cancel
Save