Allow 'temporary' fields.

This commit is contained in:
JoelKatz
2012-10-04 17:01:57 -07:00
parent d4ee872076
commit ab4e44b06d

View File

@@ -52,7 +52,11 @@ public:
SField(int fc, SerializedTypeID tid, int fv, const char* fn) :
fieldCode(fc), fieldType(tid), fieldValue(fv), fieldName(fn)
{ codeToField[fc] = this; }
{ codeToField[fieldCode] = this; }
SField(SerializedTypeID tid, int fv, const char *fn, bool temporary) :
fieldCode(FIELD_CODE(tid, fv)), fieldType(tid), fieldValue(fv), fieldName(fn)
{ if (!temporary) codeToField[fieldCode] = this; }
SField(int fc) : fieldCode(fc), fieldType(STI_UNKNOWN), fieldValue(0) { ; }