Verified Commit 623a08a5 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix crash on plugin load

parent 315c4532
......@@ -3,39 +3,36 @@
#include <array>
namespace shapes {
static QList<void (*)(rendering::Renderer &, int, int)> outerShapes_{
&ShapeDefinitions::outerOne,
&ShapeDefinitions::outerTwo,
&ShapeDefinitions::outerThree,
&ShapeDefinitions::outerFour,
};
static QList<void (*)(rendering::Renderer &, int, int)> centerShapes_{
&ShapeDefinitions::centerOne,
&ShapeDefinitions::centerTwo,
&ShapeDefinitions::centerThree,
&ShapeDefinitions::centerFour,
&ShapeDefinitions::centerFive,
&ShapeDefinitions::centerSix,
&ShapeDefinitions::centerSeven,
&ShapeDefinitions::centerEight,
&ShapeDefinitions::centerNine,
&ShapeDefinitions::centerTen,
&ShapeDefinitions::centerEleven,
&ShapeDefinitions::centerTwelve,
&ShapeDefinitions::centerThirteen,
&ShapeDefinitions::centerFourteen,
};
QList<void (*)(rendering::Renderer &, int, int)>
ShapeDefinitions::CenterShapes()
{
return outerShapes_;
return QList<void (*)(rendering::Renderer &, int, int)>{
&ShapeDefinitions::centerOne,
&ShapeDefinitions::centerTwo,
&ShapeDefinitions::centerThree,
&ShapeDefinitions::centerFour,
&ShapeDefinitions::centerFive,
&ShapeDefinitions::centerSix,
&ShapeDefinitions::centerSeven,
&ShapeDefinitions::centerEight,
&ShapeDefinitions::centerNine,
&ShapeDefinitions::centerTen,
&ShapeDefinitions::centerEleven,
&ShapeDefinitions::centerTwelve,
&ShapeDefinitions::centerThirteen,
&ShapeDefinitions::centerFourteen,
};
}
QList<void (*)(rendering::Renderer &, int, int)>
ShapeDefinitions::OuterShapes()
{
return centerShapes_;
return QList<void (*)(rendering::Renderer &, int, int)>{
&ShapeDefinitions::outerOne,
&ShapeDefinitions::outerTwo,
&ShapeDefinitions::outerThree,
&ShapeDefinitions::outerFour,
};
}
}
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