diff options
| author | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2019-02-07 10:09:21 +0100 |
|---|---|---|
| committer | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2019-02-08 08:43:32 +0000 |
| commit | 12f4b1ee865a7c616dfe4f2049e731d2bd4d4dcb (patch) | |
| tree | 49d447335ec8bacb705a7155ae5b94ec9274f8c3 /src/plugins/cpptools/cppcodestylepreferences.cpp | |
| parent | 69281bcdcf20d98ffada890573c5e2df5d832fa1 (diff) | |
| download | qt-creator-12f4b1ee865a7c616dfe4f2049e731d2bd4d4dcb.tar.gz | |
CppTools: Modernize
Change-Id: I78af9cd4ccddfa4ed744dce96b772ae5644c89d2
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/cpptools/cppcodestylepreferences.cpp')
| -rw-r--r-- | src/plugins/cpptools/cppcodestylepreferences.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cppcodestylepreferences.cpp b/src/plugins/cpptools/cppcodestylepreferences.cpp index 6a49086d6b..ea7f100a59 100644 --- a/src/plugins/cpptools/cppcodestylepreferences.cpp +++ b/src/plugins/cpptools/cppcodestylepreferences.cpp @@ -76,7 +76,7 @@ CppCodeStyleSettings CppCodeStylePreferences::currentCodeStyleSettings() const QVariant v = currentValue(); if (!v.canConvert<CppCodeStyleSettings>()) { // warning - return CppCodeStyleSettings(); + return {}; } return v.value<CppCodeStyleSettings>(); } |
