16.12.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit f74044ef authored by Sebastian Pölsterl's avatar Sebastian Pölsterl Committed by Christian Schulte zu Berge
Browse files

Call constructors of superclasses in correct order

Fixes -Wreorder
parent 0212878f
......@@ -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)
{
resize(size.x, size.y);
if (shared && shareWidget_ == 0)
......@@ -59,8 +59,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)
{
if (shared && shareWidget_ == 0)
shareWidget_ = this;
......
Markdown is supported
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