diff options
author | David Schulz <david.schulz@qt.io> | 2019-11-04 08:51:26 +0100 |
---|---|---|
committer | David Schulz <david.schulz@qt.io> | 2019-11-04 08:03:17 +0000 |
commit | 3df6a29d4fab106435c408cea92ba89f17b5d2fb (patch) | |
tree | 9ce66d43d6b01c168bc4ae6a703000b4cfa9fd65 | |
parent | 54f2ebf91d76d05d0202de5263939fc4ba227fed (diff) | |
download | qt-creator-3df6a29d4fab106435c408cea92ba89f17b5d2fb.tar.gz |
Python: remove reference to out of scope variable
Change-Id: Idd4dbab5ee01fda331452fefd27de71625afa5af
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
-rw-r--r-- | src/plugins/python/pythonsettings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/python/pythonsettings.cpp b/src/plugins/python/pythonsettings.cpp index acb7a50ddd..ab5f024765 100644 --- a/src/plugins/python/pythonsettings.cpp +++ b/src/plugins/python/pythonsettings.cpp @@ -530,7 +530,7 @@ QList<Interpreter> PythonSettings::detectPythonVenvs(const FilePath &path) void PythonSettings::saveSettings() { const QList<Interpreter> &interpreters = interpreterOptionsPage().interpreters(); - const QString &defaultId = interpreterOptionsPage().defaultInterpreter().id; + const QString defaultId = interpreterOptionsPage().defaultInterpreter().id; toSettings(Core::ICore::settings(), {interpreters, defaultId}); if (QTC_GUARD(settingsInstance)) emit settingsInstance->interpretersChanged(interpreters, defaultId); |