From 0e4f2884604f30fc85b8408916b0886a886756c0 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 20 Nov 2016 22:46:49 +0100 Subject: [PATCH] CFavorites: simplify hintbox calls Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/47b035849023945af39f442ebdc90d47fef66047 Author: Thilo Graf Date: 2016-11-20 (Sun, 20 Nov 2016) --- src/gui/favorites.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gui/favorites.cpp b/src/gui/favorites.cpp index 041cf35d1..6214ad0f7 100644 --- a/src/gui/favorites.cpp +++ b/src/gui/favorites.cpp @@ -127,14 +127,13 @@ int CFavorites::exec(CMenuTarget* parent, const std::string & actionKey) } #endif - CHintBox* hintBox = new CHintBox(LOCALE_FAVORITES_BOUQUETNAME, g_Locale->getText(LOCALE_FAVORITES_ADDCHANNEL), 380); // UTF-8 + CHintBox hintBox(LOCALE_FAVORITES_BOUQUETNAME, g_Locale->getText(LOCALE_FAVORITES_ADDCHANNEL), 380); // UTF-8 if(!show_list) - hintBox->paint(); + hintBox.paint(); status = addChannelToFavorites(show_list); - hintBox->hide(); - delete hintBox; + hintBox.hide(); // -- Display result