Skip to content

Commit

Permalink
Use initialisation list for UIGTCon copy constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartm committed May 25, 2013
1 parent 368f415 commit 5ecae1f
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions mythtv/libs/libmythui/mythuiguidegrid.h
Expand Up @@ -75,16 +75,12 @@ class MUI_PUBLIC MythUIGuideGrid : public MythUIType
m_recType(recType), m_recStat(recStat)
{}

UIGTCon(const UIGTCon &o)
{
m_drawArea = o.m_drawArea;
m_title = o.m_title;
m_category = o.m_category;
m_categoryColor = o.m_categoryColor;
m_arrow = o.m_arrow;
m_recType = o.m_recType;
m_recStat = o.m_recStat;
}
UIGTCon(const UIGTCon &o) :
m_drawArea(o.m_drawArea), m_title(o.m_title),
m_category(o.m_category), m_categoryColor(o.m_categoryColor),
m_arrow(o.m_arrow), m_recType(o.m_recType),
m_recStat(o.m_recStat)
{}

QRect m_drawArea;
QString m_title;
Expand Down

0 comments on commit 5ecae1f

Please sign in to comment.