summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-12-10 11:39:37 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-12-19 16:04:29 +0000
commit3af74eba706d7ad76ff86d81db2c61addf8745a6 (patch)
tree5f4c7fca628360d7393d65441571e6d1aa9e9880
parent4e823c69ec36b648d6126ae5ec031f58d1372ab4 (diff)
windeployqt: Replace typedef by using
Fix the respective Clang-tidy warning: utils.h:85: warning: use 'using' instead of 'typedef' [modernize-use-using] as displayed in the Qt Creator issues pane. Change-Id: Ide04ff3bc426ec55b9cdcc1b511119089d6750d8 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r--src/shared/winutils/utils.h4
-rw-r--r--src/windeployqt/main.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/winutils/utils.h b/src/shared/winutils/utils.h
index 4cede6b55..5552a3665 100644
--- a/src/shared/winutils/utils.h
+++ b/src/shared/winutils/utils.h
@@ -82,8 +82,8 @@ inline std::wostream &operator<<(std::wostream &str, const QString &s)
// Container class for JSON output
class JsonOutput
{
- typedef QPair<QString, QString> SourceTargetMapping;
- typedef QList<SourceTargetMapping> SourceTargetMappings;
+ using SourceTargetMapping = QPair<QString, QString>;
+ using SourceTargetMappings = QList<SourceTargetMapping>;
public:
void addFile(const QString &source, const QString &target)
diff --git a/src/windeployqt/main.cpp b/src/windeployqt/main.cpp
index e1e68c0ab..6b6e67d6c 100644
--- a/src/windeployqt/main.cpp
+++ b/src/windeployqt/main.cpp
@@ -310,7 +310,7 @@ enum CommandLineParseFlag {
static inline int parseArguments(const QStringList &arguments, QCommandLineParser *parser,
Options *options, QString *errorMessage)
{
- typedef QSharedPointer<QCommandLineOption> CommandLineOptionPtr;
+ using CommandLineOptionPtr = QSharedPointer<QCommandLineOption>;
using OptionPtrVector = QVector<CommandLineOptionPtr>;
parser->setSingleDashWordOptionMode(QCommandLineParser::ParseAsLongOptions);