mirror of
https://github.com/transmission/transmission.git
synced 2025-12-27 05:38:40 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user