Showing the changes to libraries/script-engine/src/ScriptGatekeeper.cpp (1 of 2 files). Show all
Unified · Split
| @@ -15,14 +15,14 @@ · 14 unmodified lines | ||
| 15 | 15 | #include "SettingHandle.h" |
| 16 | 16 | |
| 17 | 17 | void ScriptGatekeeper::initialize() { |
| 18 | − if (_initialized == true) { | |
| 18 | + if (_initialized) { | |
| 19 | 19 | return; |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | QVariant rawCurrentWhitelistValues = Setting::Handle<QVariant>(SCRIPT_WHITELIST_ENTRIES_KEY).get(); |
| 23 | 23 | QString settingsSafeValues = rawCurrentWhitelistValues.toString(); |
| 24 | 24 | |
| 25 | − Setting::Handle<bool> whitelistEnabled{ SCRIPT_WHITELIST_ENABLED_KEY, false }; | |
| 25 | + Setting::Handle<bool> whitelistEnabled { SCRIPT_WHITELIST_ENABLED_KEY, false }; | |
| 26 | 26 | Setting::Handle<bool> isFirstRun { Settings::firstRun, true }; |
| 27 | 27 | |
| 28 | 28 | QString preloadedVal = BuildInfo::PRELOADED_SCRIPT_WHITELIST; |