diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-02 12:49:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-02 12:49:08 +0300 |
commit | 5c3746562bafd61603c67958fc82ff097a69e3a4 (patch) | |
tree | c36e46dd4df2bc7388e7e82b6e6ae8294c4ecd02 /src/touchmanager.cpp | |
parent | 60b386b1a97a052cea867dd3a4f7a9c52394b312 (diff) | |
download | manaverse-5c3746562bafd61603c67958fc82ff097a69e3a4.tar.gz manaverse-5c3746562bafd61603c67958fc82ff097a69e3a4.tar.bz2 manaverse-5c3746562bafd61603c67958fc82ff097a69e3a4.tar.xz manaverse-5c3746562bafd61603c67958fc82ff097a69e3a4.zip |
Add missing const and static into other classes.
Diffstat (limited to 'src/touchmanager.cpp')
-rw-r--r-- | src/touchmanager.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/touchmanager.cpp b/src/touchmanager.cpp index 2f93a4ddc..0b2b85562 100644 --- a/src/touchmanager.cpp +++ b/src/touchmanager.cpp @@ -346,12 +346,9 @@ void TouchManager::unload(TouchItem *const item) { if (item) { - Theme *const theme = Theme::instance(); - if (!theme) - return; if (item->images) { - theme->unloadRect(*item->images); + Theme::unloadRect(*item->images); delete item->images; item->images = nullptr; if (item->icon) |