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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user