mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
Avoid double lookups
This commit is contained in:
parent
d2c21ce507
commit
daf52a2610
2 changed files with 11 additions and 7 deletions
|
@ -68,6 +68,9 @@ public:
|
|||
|
||||
CachedSettingValue<T> &operator=(const T &newValue)
|
||||
{
|
||||
if (m_value == newValue)
|
||||
return *this;
|
||||
|
||||
m_value = newValue;
|
||||
storeValue(m_value);
|
||||
return *this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue