Commit 2a91ad0e authored by Sebastian Pölsterl's avatar Sebastian Pölsterl
Browse files

Call constructors of superclasses in correct order

Fixes -Wreorder
parent fad91715
......@@ -33,8 +33,8 @@ QtCanvas::QtCanvas(const std::string& title,
const ivec2& size,
const Buffers buffers,
QWidget* parent, bool shared, Qt::WFlags f, char* /*name*/)
: QGLWidget(getQGLFormat(buffers), parent, (shared ? shareWidget_ : 0), f)
, GLCanvas(title, size, buffers)
: GLCanvas(title, size, buffers)
, QGLWidget(getQGLFormat(buffers), parent, (shared ? shareWidget_ : 0), f)
, _context(this)
{
_context = QtGLContext(this);
......@@ -61,8 +61,8 @@ QtCanvas::QtCanvas(const std::string& title,
}
QtCanvas::QtCanvas(QWidget* parent, bool shared, Qt::WFlags f, char* /*name*/)
: QGLWidget(parent, (shared ? shareWidget_ : 0), f)
, GLCanvas()
: GLCanvas()
, QGLWidget(parent, (shared ? shareWidget_ : 0), f)
, _context(this)
{
if (shared && shareWidget_ == 0)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment