From 5c3746562bafd61603c67958fc82ff097a69e3a4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 2 Feb 2014 12:49:08 +0300 Subject: Add missing const and static into other classes. --- src/touchmanager.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/touchmanager.cpp') 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) -- cgit v1.2.3-70-g09d2