From 0c57deec15fcc119545f2a82ad7f5c6c50cf73ff Mon Sep 17 00:00:00 2001 From: cutealien Date: Tue, 24 Jul 2018 20:13:16 +0000 Subject: [PATCH] Simplify code (getAttributeAsBool didn't have default-paramters in the past). git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5633 dfc29bdd-3216-0410-991c-e03cc46cb475 --- source/Irrlicht/CGUITabControl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/Irrlicht/CGUITabControl.cpp b/source/Irrlicht/CGUITabControl.cpp index 5a736a64..215459eb 100644 --- a/source/Irrlicht/CGUITabControl.cpp +++ b/source/Irrlicht/CGUITabControl.cpp @@ -141,8 +141,7 @@ void CGUITab::deserializeAttributes(io::IAttributes* in, io::SAttributeReadWrite setNumber(in->getAttributeAsInt("TabNumber")); setDrawBackground(in->getAttributeAsBool("DrawBackground")); setBackgroundColor(in->getAttributeAsColor("BackColor")); - if ( in->existsAttribute("OverrideTextColorEnabled") ) - OverrideTextColorEnabled = in->getAttributeAsBool("OverrideTextColorEnabled"); + OverrideTextColorEnabled = in->getAttributeAsBool("OverrideTextColorEnabled", OverrideTextColorEnabled); setTextColor(in->getAttributeAsColor("TextColor")); if (Parent && Parent->getType() == EGUIET_TAB_CONTROL)