From 6575499f37167f9b76f474762fa93370ec9e606a Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sat, 10 Aug 2013 20:17:29 -0500 Subject: [PATCH] Added basic implementation for PField. - I don't know why this didn't give me trouble before, but I needed to add IMPLEMENT_CLASS for PField. --- src/dobjtype.cpp | 15 +++++++++++++++ src/dobjtype.h | 2 ++ 2 files changed, 17 insertions(+) diff --git a/src/dobjtype.cpp b/src/dobjtype.cpp index 45dc4ee48..c54931a16 100644 --- a/src/dobjtype.cpp +++ b/src/dobjtype.cpp @@ -987,6 +987,21 @@ PStruct *NewStruct(FName name, DObject *outer) return static_cast(stype); } +/* PField *****************************************************************/ + +IMPLEMENT_CLASS(PField) + +//========================================================================== +// +// PField - Default Constructor +// +//========================================================================== + +PField::PField() +: PSymbol(NAME_None) +{ +} + /* PPrototype *************************************************************/ IMPLEMENT_CLASS(PPrototype) diff --git a/src/dobjtype.h b/src/dobjtype.h index a927a3298..a6f3bd843 100644 --- a/src/dobjtype.h +++ b/src/dobjtype.h @@ -329,6 +329,8 @@ public: unsigned int FieldOffset; PType *FieldType; +protected: + PField(); }; // Compound types -----------------------------------------------------------