diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-11 20:03:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-11 20:03:02 +0300 |
commit | 91fa2122a536770924bb2819bec4b79e76393d08 (patch) | |
tree | 93c0e191249b2158cf92a564630a4b16e9ccdcaa /src/gui/itempopup.cpp | |
parent | 1a524dc9468fe532bc060a73ef736a68687aadca (diff) | |
download | mv-91fa2122a536770924bb2819bec4b79e76393d08.tar.gz mv-91fa2122a536770924bb2819bec4b79e76393d08.tar.bz2 mv-91fa2122a536770924bb2819bec4b79e76393d08.tar.xz mv-91fa2122a536770924bb2819bec4b79e76393d08.zip |
Fix code style and small perfomance issues.
Diffstat (limited to 'src/gui/itempopup.cpp')
-rw-r--r-- | src/gui/itempopup.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/itempopup.cpp b/src/gui/itempopup.cpp index feb9a050d..4b0501def 100644 --- a/src/gui/itempopup.cpp +++ b/src/gui/itempopup.cpp @@ -89,12 +89,9 @@ ItemPopup::~ItemPopup() { if (mIcon) { - Image *image = mIcon->getImage(); + Image *const image = mIcon->getImage(); if (image) - { image->decRef(); - image = nullptr; - } } } |