mirror of
https://github.com/transmission/transmission.git
synced 2026-02-14 23:19:34 +00:00
refactor: remove redundant calls to tr_quark_convert() (#7987)
This commit is contained in:
@@ -223,7 +223,7 @@ Prefs::Prefs(QString config_dir)
|
||||
|
||||
for (int i = 0; i < PREFS_COUNT; ++i)
|
||||
{
|
||||
tr_variant const* b = tr_variantDictFind(&settings, tr_quark_convert(getKey(i)));
|
||||
tr_variant const* b = tr_variantDictFind(&settings, getKey(i));
|
||||
|
||||
switch (Items[i].type)
|
||||
{
|
||||
@@ -303,8 +303,8 @@ Prefs::~Prefs()
|
||||
continue;
|
||||
}
|
||||
|
||||
tr_quark const key = tr_quark_convert(getKey(i));
|
||||
QVariant const& val = values_[i];
|
||||
auto const key = getKey(i);
|
||||
auto const& val = values_[i];
|
||||
|
||||
switch (Items[i].type)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user