Fixed compile warning (regarding static members initialization)

This commit is contained in:
Michaël Lemaire 2013-10-03 23:28:09 +02:00
parent 81a27b1b39
commit a7bc90a1a1
3 changed files with 12 additions and 3 deletions

View file

@ -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;
};

View file

@ -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;
};

View file

@ -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;
};