Commit 086d931e authored by Jan Möbius's avatar Jan Möbius
Browse files

uninitialized value fix

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15245 383ad7c9-94d9-4d36-a494-682f7c89f535
parent f4020de3
...@@ -103,7 +103,7 @@ class DLLEXPORT PerObjectData { ...@@ -103,7 +103,7 @@ class DLLEXPORT PerObjectData {
class DLLEXPORT _CLASS : public PerObjectData { \ class DLLEXPORT _CLASS : public PerObjectData { \
\ \
public: \ public: \
inline _CLASS() { } \ inline _CLASS() : data_( _VALUE() ) { } \
inline _CLASS(const _VALUE& _x) : data_(_x) { } \ inline _CLASS(const _VALUE& _x) : data_(_x) { } \
inline ~_CLASS() { } \ inline ~_CLASS() { } \
inline virtual _CLASS* copyPerObjectData() { return new _CLASS(data_); } \ inline virtual _CLASS* copyPerObjectData() { return new _CLASS(data_); } \
...@@ -117,9 +117,7 @@ class DLLEXPORT _CLASS : public PerObjectData { \ ...@@ -117,9 +117,7 @@ class DLLEXPORT _CLASS : public PerObjectData { \
PER_OBJECT_DATA(BoolPerObjectData, bool ); PER_OBJECT_DATA(BoolPerObjectData, bool );
PER_OBJECT_DATA(CharPerObjectData, char ); PER_OBJECT_DATA(CharPerObjectData, char );
PER_OBJECT_DATA(UCharPerObjectData, unsigned char);
PER_OBJECT_DATA(IntPerObjectData, int ); PER_OBJECT_DATA(IntPerObjectData, int );
PER_OBJECT_DATA(UIntPerObjectData, unsigned int );
PER_OBJECT_DATA(FloatPerObjectData, float ); PER_OBJECT_DATA(FloatPerObjectData, float );
PER_OBJECT_DATA(DoublePerObjectData, double ); PER_OBJECT_DATA(DoublePerObjectData, double );
......
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