mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Allow 'temporary' fields.
This commit is contained in:
@@ -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) { ; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user