diff options
| author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2018-09-25 21:08:52 +0300 |
|---|---|---|
| committer | Orgad Shaneh <orgads@gmail.com> | 2018-09-26 10:02:32 +0000 |
| commit | 7f2bbe9cfb337a6d6c6dc7ef68d86d320006e2ee (patch) | |
| tree | f19209625ef3a669fa7253833d1d1ec17f51f64f /src/plugins/cppcheck/cppcheckoptions.cpp | |
| parent | 9644745b3d9d914e75dd8285e9d0a74a161fad4c (diff) | |
| download | qt-creator-7f2bbe9cfb337a6d6c6dc7ef68d86d320006e2ee.tar.gz | |
Cppcheck: Reduce uses of auto
Conform to coding rules.
Change-Id: I57600bd450665d5db87710bb2444e39e7ecbf3e3
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Diffstat (limited to 'src/plugins/cppcheck/cppcheckoptions.cpp')
| -rw-r--r-- | src/plugins/cppcheck/cppcheckoptions.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/cppcheck/cppcheckoptions.cpp b/src/plugins/cppcheck/cppcheckoptions.cpp index 562741075a..3c16ccfd56 100644 --- a/src/plugins/cppcheck/cppcheckoptions.cpp +++ b/src/plugins/cppcheck/cppcheckoptions.cpp @@ -67,7 +67,7 @@ public: m_binary->setExpectedKind(Utils::PathChooser::ExistingCommand); m_binary->setCommandVersionArguments({"--version"}); - const auto variableChooser = new Core::VariableChooser (this); + auto variableChooser = new Core::VariableChooser(this); variableChooser->addSupportedWidget (m_customArguments); m_unusedFunction->setToolTip(tr("Disables multithreaded check.")); @@ -77,10 +77,10 @@ public: "checking slower. Use only when needed.")); m_guessArguments->setToolTip(tr("Like C++ standard and language.")); - const auto layout = new QFormLayout(this); + auto layout = new QFormLayout(this); layout->addRow(tr("Binary:"), m_binary); - const auto checks = new Utils::FlowLayout; + auto checks = new Utils::FlowLayout; layout->addRow(tr("Checks:"), checks); checks->addWidget(m_warning); checks->addWidget(m_style); @@ -92,7 +92,7 @@ public: layout->addRow(tr("Custom arguments:"), m_customArguments); layout->addRow(tr("Ignored file patterns:"), m_ignorePatterns); - const auto flags = new Utils::FlowLayout; + auto flags = new Utils::FlowLayout; layout->addRow(flags); flags->addWidget(m_inconclusive); flags->addWidget(m_forceDefines); @@ -169,7 +169,7 @@ CppcheckOptionsPage::CppcheckOptionsPage(CppcheckTool &tool, CppcheckTrigger &tr if (Utils::HostOsInfo::isAnyUnixHost()) { options.binary = "cppcheck"; } else { - auto programFiles = QDir::fromNativeSeparators( + QString programFiles = QDir::fromNativeSeparators( QString::fromLocal8Bit(qgetenv("PROGRAMFILES"))); if (programFiles.isEmpty()) programFiles = "C:/Program Files"; @@ -204,7 +204,7 @@ void CppcheckOptionsPage::finish() void CppcheckOptionsPage::save(const CppcheckOptions &options) const { - const auto s = Core::ICore::settings(); + QSettings *s = Core::ICore::settings(); QTC_ASSERT(s, return); s->beginGroup(Constants::SETTINGS_ID); s->setValue(Constants::SETTINGS_BINARY, options.binary); @@ -227,7 +227,7 @@ void CppcheckOptionsPage::save(const CppcheckOptions &options) const void CppcheckOptionsPage::load(CppcheckOptions &options) const { - const auto s = Core::ICore::settings(); + QSettings *s = Core::ICore::settings(); QTC_ASSERT(s, return); s->beginGroup(Constants::SETTINGS_ID); options.binary = s->value(Constants::SETTINGS_BINARY, |
