mirror of
https://github.com/lubosz/overte.git
synced 2025-04-09 08:22:30 +02:00
Apply suggestions from code review
Co-authored-by: David Rowe <david@ctrlaltstudio.com>
This commit is contained in:
parent
b5d89c44bf
commit
3dc11637ed
2 changed files with 3 additions and 3 deletions
|
@ -15,14 +15,14 @@
|
|||
#include "SettingHandle.h"
|
||||
|
||||
void ScriptGatekeeper::initialize() {
|
||||
if (_initialized == true) {
|
||||
if (_initialized) {
|
||||
return;
|
||||
}
|
||||
|
||||
QVariant rawCurrentWhitelistValues = Setting::Handle<QVariant>(SCRIPT_WHITELIST_ENTRIES_KEY).get();
|
||||
QString settingsSafeValues = rawCurrentWhitelistValues.toString();
|
||||
|
||||
Setting::Handle<bool> whitelistEnabled{ SCRIPT_WHITELIST_ENABLED_KEY, false };
|
||||
Setting::Handle<bool> whitelistEnabled { SCRIPT_WHITELIST_ENABLED_KEY, false };
|
||||
Setting::Handle<bool> isFirstRun { Settings::firstRun, true };
|
||||
|
||||
QString preloadedVal = BuildInfo::PRELOADED_SCRIPT_WHITELIST;
|
||||
|
|
|
@ -23,7 +23,7 @@ public:
|
|||
QString SCRIPT_WHITELIST_ENTRIES_KEY{ "private/settingsSafeURLS" };
|
||||
|
||||
private:
|
||||
bool _initialized{ false };
|
||||
bool _initialized { false };
|
||||
};
|
||||
|
||||
#endif // vircadia_ScriptGatekeeper_h
|
||||
|
|
Loading…
Reference in a new issue