From bc0c0e76dad3b1cf960da8b0a2247b50d323c887 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Jun 2015 23:16:08 +0300 Subject: Use CREATEWIDGET macro in skilllistbox. --- src/gui/widgets/skilllistbox.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/widgets/skilllistbox.h b/src/gui/widgets/skilllistbox.h index 2756057f7..4eda139a5 100644 --- a/src/gui/widgets/skilllistbox.h +++ b/src/gui/widgets/skilllistbox.h @@ -28,6 +28,7 @@ #include "gui/skin.h" #include "gui/viewport.h" +#include "gui/widgets/createwidget.h" #include "gui/widgets/listbox.h" #include "gui/widgets/skilldata.h" @@ -54,7 +55,7 @@ class SkillListBox final : public ListBox SkillModel *const model) : ListBox(widget, model, "skilllistbox.xml"), mModel(model), - mPopup(new SkillPopup), + mPopup(CREATEWIDGETR0(SkillPopup)), mTextColor(getThemeColor(ThemeColorId::TEXT)), mTextColor2(getThemeColor(ThemeColorId::TEXT_OUTLINE)), mCooldownColor(getThemeColor(ThemeColorId::SKILL_COOLDOWN)), @@ -64,7 +65,6 @@ class SkillListBox final : public ListBox { mRowHeight = getFont()->getHeight() * 2 + mSpacing + 2 * mPadding; mHighlightColor = getThemeColor(ThemeColorId::HIGHLIGHT); - mPopup->postInit(); if (mRowHeight < 34) mRowHeight = 34; -- cgit v1.2.3-60-g2f50