Sonarcloud warnings 3 (#1498)

* chore: use ClassName:: for calling static methods

* chore: prefer to initialize member data in the class initializer
This commit is contained in:
Charles Kerr
2020-11-01 19:13:32 -06:00
committed by GitHub
parent 19e52d8b9a
commit 73fdd722a7
44 changed files with 339 additions and 435 deletions

View File

@@ -185,7 +185,7 @@ Prefs::Prefs(QString config_dir) :
for (int i = 0; i < PREFS_COUNT; ++i)
{
tr_variant* b(tr_variantDictFind(&top, Items[i].key));
tr_variant const* b = tr_variantDictFind(&top, Items[i].key);
switch (Items[i].type)
{