From ee04bbb368bc49e997592d9ca8725c4a5d4371ca Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 4 Feb 2018 20:09:22 +0100 Subject: [PATCH] CComponentsHeader: fix possible build error with dangling-else error: suggest explicit braces to avoid ambiguous 'else' [-Werror=dangling-else] see commit: 02631f14ca902f9362e12a1ac1614be1719d40f8 --- src/gui/components/cc_frm_header.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/components/cc_frm_header.cpp b/src/gui/components/cc_frm_header.cpp index 9deb22ae4..4ae9a7b25 100644 --- a/src/gui/components/cc_frm_header.cpp +++ b/src/gui/components/cc_frm_header.cpp @@ -308,7 +308,7 @@ void CComponentsHeader::initLogo() * FIXME: Workaround to fix next item in case of wrong order of items. */ if (next_item){ - if (next_item->getItemType() == CC_ITEMTYPE_FRM_ICONFORM) + if (next_item->getItemType() == CC_ITEMTYPE_FRM_ICONFORM){ /* either clock is present * or in chanellist edit mode * possible button */ @@ -316,6 +316,7 @@ void CComponentsHeader::initLogo() next_item = cch_cl_obj; else next_item = cch_btn_obj; + } } /*