diff options
author | Orgad Shaneh <[email protected]> | 2018-09-21 01:15:38 +0300 |
---|---|---|
committer | Orgad Shaneh <[email protected]> | 2018-09-21 05:37:39 +0000 |
commit | d88a0d8e681ec18a98540fa0a77d589511083f1f (patch) | |
tree | e67c96a2e6beb2c51c3a8fd46c1ff517b557aa17 /src/libs/utils/projectintropage.cpp | |
parent | 9364e4b8ecbed6a555ba29d68678490d088c4c8d (diff) |
Utils: Modernize
range-based for, nullptr, member initializers, override.
Change-Id: I21ac5b23883c08dbd75819bb3298bc956cdb972c
Reviewed-by: Alessandro Portale <[email protected]>
Diffstat (limited to 'src/libs/utils/projectintropage.cpp')
-rw-r--r-- | src/libs/utils/projectintropage.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/libs/utils/projectintropage.cpp b/src/libs/utils/projectintropage.cpp index 4aeabdaceb2..a449fe1285f 100644 --- a/src/libs/utils/projectintropage.cpp +++ b/src/libs/utils/projectintropage.cpp @@ -60,22 +60,19 @@ class ProjectIntroPagePrivate public: ProjectIntroPagePrivate(); Ui::ProjectIntroPage m_ui; - bool m_complete; + bool m_complete = false; QRegularExpressionValidator m_projectNameValidator; // Status label style sheets const QString m_errorStyleSheet; const QString m_warningStyleSheet; const QString m_hintStyleSheet; - bool m_forceSubProject; + bool m_forceSubProject = false; QStringList m_projectDirectories; }; ProjectIntroPagePrivate:: ProjectIntroPagePrivate() : - m_complete(false), m_errorStyleSheet(QLatin1String("background : red;")), - m_warningStyleSheet(QLatin1String("background : yellow;")), - m_hintStyleSheet(), - m_forceSubProject(false) + m_warningStyleSheet(QLatin1String("background : yellow;")) { } |