Fix wxPenInfo ctor compilation with gcc 4.4.7 on CentOS 6

Use template argument when calling the base template class ctor.
This commit is contained in:
Lauri Nurmi
2017-11-05 17:42:20 +02:00
committed by VZ
parent 56323b5aba
commit f529dfaaef
2 changed files with 2 additions and 2 deletions

View File

@@ -143,7 +143,7 @@ public:
explicit wxGraphicsPenInfo(const wxColour& colour = wxColour(), explicit wxGraphicsPenInfo(const wxColour& colour = wxColour(),
wxDouble width = 1.0, wxDouble width = 1.0,
wxPenStyle style = wxPENSTYLE_SOLID) wxPenStyle style = wxPENSTYLE_SOLID)
: wxPenInfoBase(colour, style) : wxPenInfoBase<wxGraphicsPenInfo>(colour, style)
{ {
m_width = width; m_width = width;
} }

View File

@@ -24,7 +24,7 @@ public:
explicit wxPenInfo(const wxColour& colour = wxColour(), explicit wxPenInfo(const wxColour& colour = wxColour(),
int width = 1, int width = 1,
wxPenStyle style = wxPENSTYLE_SOLID) wxPenStyle style = wxPENSTYLE_SOLID)
: wxPenInfoBase(colour, style) : wxPenInfoBase<wxPenInfo>(colour, style)
{ {
m_width = width; m_width = width;
} }