Skip to content
Permalink
Browse files

Fix some hidden virtuals in MHEG code (cppcheck).

  • Loading branch information
daniel-kristjansson committed Sep 11, 2012
1 parent 6a7e351 commit 2584115cda9d61e1572c5cbb870119734536ae3a
Showing with 4 additions and 4 deletions.
  1. +2 −2 mythtv/libs/libmythfreemheg/DynamicLineArt.cpp
  2. +2 −2 mythtv/libs/libmythfreemheg/DynamicLineArt.h
@@ -113,14 +113,14 @@ void MHDynamicLineArt::SetLineColour(const MHColour &colour, MHEngine *)
m_picture->SetLineColour(GetColour(m_LineColour));
}

void MHDynamicLineArt::SetLineWidth(int nWidth)
void MHDynamicLineArt::SetLineWidth(int nWidth, MHEngine *)
{
m_nLineWidth = nWidth;
m_picture->SetLineSize(m_nLineWidth);
}

// We don't actually use this at the moment.
void MHDynamicLineArt::SetLineStyle(int nStyle)
void MHDynamicLineArt::SetLineStyle(int nStyle, MHEngine *)
{
m_LineStyle = nStyle;
}
@@ -52,8 +52,8 @@ class MHDynamicLineArt : public MHLineArt
// These actions set the properties for subsequent drawing but don't affect anything drawn so far.
virtual void SetFillColour(const MHColour &colour, MHEngine *);
virtual void SetLineColour(const MHColour &colour, MHEngine *);
virtual void SetLineWidth(int nWidth);
virtual void SetLineStyle(int nStyle);
virtual void SetLineWidth(int nWidth, MHEngine *);
virtual void SetLineStyle(int nStyle, MHEngine *);

virtual void GetLineWidth(MHRoot *pResult) { pResult->SetVariableValue(m_nLineWidth); }
virtual void GetLineStyle(MHRoot *pResult) { pResult->SetVariableValue(m_LineStyle); }

0 comments on commit 2584115

Please sign in to comment.
You can’t perform that action at this time.