From 00b109d321658792cdfba618bccc433ad61befae Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Tue, 7 Mar 2017 19:46:30 +0100 Subject: [PATCH] msgbox: deobfuscate assignment of default result value Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/2cef61bd8e249cf9118566d9eaa54cdcfab7f965 Author: Stefan Seyfried Date: 2017-03-07 (Tue, 07 Mar 2017) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/widget/msgbox.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gui/widget/msgbox.cpp b/src/gui/widget/msgbox.cpp index 48921105b..b89220a13 100644 --- a/src/gui/widget/msgbox.cpp +++ b/src/gui/widget/msgbox.cpp @@ -101,10 +101,8 @@ void CMsgBox::init(const int& Height, const int& ShowButtons, const msg_result_t shadow = CC_SHADOW_ON; //set result - if (Default_result != mbrNone) - result = default_result = Default_result; - else - result = mbrNone; + result = default_result = Default_result; + //add and initialize footer buttons with required buttons and basic properties if (ShowButtons > -1) mb_show_button = ShowButtons;