diff --git a/src/editing/textures/PreviewCumul.h b/src/editing/textures/PreviewCumul.h index fc69bc2..bf72b00 100644 --- a/src/editing/textures/PreviewCumul.h +++ b/src/editing/textures/PreviewCumul.h @@ -8,6 +8,9 @@ class BasePreview; class PreviewCumul : public PreviewRenderer { public: + explicit PreviewCumul(QObject *parent = 0): + PreviewRenderer(parent),textures(0){} + void setTextures(TexturesDefinition* textures); void setLayer(int layer); @@ -17,7 +20,7 @@ protected: virtual Color getColor2D(double x, double y, double scaling); private: - TexturesDefinition* textures = 0; + TexturesDefinition* textures; int layer; }; diff --git a/src/editing/textures/PreviewLayerCoverage.h b/src/editing/textures/PreviewLayerCoverage.h index 67ce0be..351e48d 100644 --- a/src/editing/textures/PreviewLayerCoverage.h +++ b/src/editing/textures/PreviewLayerCoverage.h @@ -8,6 +8,9 @@ class BasePreview; class PreviewLayerCoverage : public PreviewRenderer { public: + explicit PreviewLayerCoverage(QObject *parent = 0): + PreviewRenderer(parent),textures(0){} + void setTextures(TexturesDefinition* textures); void setLayer(int layer); @@ -17,7 +20,7 @@ protected: virtual Color getColor2D(double x, double y, double scaling); private: - TexturesDefinition* textures = 0; + TexturesDefinition* textures; int layer; }; diff --git a/src/editing/textures/PreviewLayerLook.h b/src/editing/textures/PreviewLayerLook.h index e9ed9f2..659a3ed 100644 --- a/src/editing/textures/PreviewLayerLook.h +++ b/src/editing/textures/PreviewLayerLook.h @@ -8,6 +8,9 @@ class BasePreview; class PreviewLayerLook : public PreviewRenderer { public: + explicit PreviewLayerLook(QObject *parent = 0): + PreviewRenderer(parent),textures(0){} + void setTextures(TexturesDefinition* textures); void setLayer(int layer); @@ -17,7 +20,7 @@ protected: virtual Color getColor2D(double x, double y, double scaling); private: - TexturesDefinition* textures = 0; + TexturesDefinition* textures; int layer; };