diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2019-02-20 13:38:24 +0300 |
---|---|---|
committer | Denis Shienkov <denis.shienkov@gmail.com> | 2019-02-23 07:38:42 +0000 |
commit | e160b26d8c7476c63f6220ac69d1d6405e8ce3aa (patch) | |
tree | a63896f1b3d74ab9b50d45070213d6897a8d7248 /src/app/qbs | |
parent | 6615e52e4308962a7d10d606eead188fbfe198f3 (diff) |
Replace 'typedef' with 'using' where it is possible
One exception is that the 'typedef' for function pointers
were skipped due to an additional work is required.
Change-Id: I2112fded3abeaee1d1f49f56adfd2914d5db0324
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/app/qbs')
-rw-r--r-- | src/app/qbs/commandlinefrontend.h | 2 | ||||
-rw-r--r-- | src/app/qbs/parser/commandlineparser.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/app/qbs/commandlinefrontend.h b/src/app/qbs/commandlinefrontend.h index 8860324a6..363e0b040 100644 --- a/src/app/qbs/commandlinefrontend.h +++ b/src/app/qbs/commandlinefrontend.h @@ -81,7 +81,7 @@ private: void handleProcessResultReport(const qbs::ProcessResult &result); void checkCancelStatus(); - typedef QHash<Project, QList<ProductData> > ProductMap; + using ProductMap = QHash<Project, QList<ProductData>>; ProductMap productsToUse() const; bool resolvingMultipleProjects() const; diff --git a/src/app/qbs/parser/commandlineparser.cpp b/src/app/qbs/parser/commandlineparser.cpp index 2ec0df1df..32023e011 100644 --- a/src/app/qbs/parser/commandlineparser.cpp +++ b/src/app/qbs/parser/commandlineparser.cpp @@ -477,7 +477,7 @@ void CommandLineParser::CommandLineParserPrivate::setupBuildConfigurations() { // first: configuration name, second: properties. // Empty configuration name used for global properties. - typedef std::pair<QString, QVariantMap> PropertyListItem; + using PropertyListItem = std::pair<QString, QVariantMap>; QList<PropertyListItem> propertiesPerConfiguration; const QString configurationNameKey = QLatin1String("qbs.configurationName"); |