From a7bc90a1a19dd9e354521d190bac83fb4237e8df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Lemaire?= Date: Thu, 3 Oct 2013 23:28:09 +0200 Subject: [PATCH] Fixed compile warning (regarding static members initialization) --- src/editing/textures/PreviewCumul.h | 5 ++++- src/editing/textures/PreviewLayerCoverage.h | 5 ++++- src/editing/textures/PreviewLayerLook.h | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) 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; };