From 6f502010b0f054dc82b049ce082a387d3e62b359 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 20 Nov 2016 22:50:41 +0100 Subject: [PATCH] CNetworkSetup: simplify hintbox calls Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/f85270f1ed1494baa5116236661c83f78f66239b Author: Thilo Graf Date: 2016-11-20 (Sun, 20 Nov 2016) --- src/gui/network_setup.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/gui/network_setup.cpp b/src/gui/network_setup.cpp index a3b652e36..c6748f23f 100644 --- a/src/gui/network_setup.cpp +++ b/src/gui/network_setup.cpp @@ -578,15 +578,14 @@ void CNetworkSetup::applyNetworkSettings() if (!checkForIP()) return; - CHintBox * hintBox = new CHintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_NETWORKMENU_APPLY_SETTINGS)); // UTF-8 - hintBox->paint(); + CHintBox hintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_NETWORKMENU_APPLY_SETTINGS)); // UTF-8 + hintBox.paint(); networkConfig->stopNetwork(); saveNetworkSettings(); networkConfig->startNetwork(); - hintBox->hide(); - delete hintBox; + hintBox.hide(); } //open a message dialog with buttons,