Skip to content

Commit

Permalink
Fix some hidden virtuals in MHEG code (cppcheck).
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-kristjansson committed Oct 3, 2012
1 parent 6a7e351 commit 2584115
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythfreemheg/DynamicLineArt.cpp
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions mythtv/libs/libmythfreemheg/DynamicLineArt.h
Expand Up @@ -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); }
Expand Down

0 comments on commit 2584115

Please sign in to comment.