ldtypes.cpp

changeset 169
f562323760a2
parent 168
96691a009dff
child 170
2247a32e63a8
equal deleted inserted replaced
168:96691a009dff 169:f562323760a2
58 // ============================================================================= 58 // =============================================================================
59 // LDObject constructors 59 // LDObject constructors
60 LDObject::LDObject () { 60 LDObject::LDObject () {
61 qObjListEntry = null; 61 qObjListEntry = null;
62 parent = null; 62 parent = null;
63 m_group = NoGroup;
63 } 64 }
64 65
65 LDGibberish::LDGibberish (str _zContent, str _zReason) { 66 LDGibberish::LDGibberish (str _zContent, str _zReason) {
66 zContents = _zContent; 67 zContents = _zContent;
67 zReason = _zReason; 68 zReason = _zReason;
653 654
654 // ============================================================================= 655 // =============================================================================
655 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 656 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
656 // ============================================================================= 657 // =============================================================================
657 #define CHECK_FOR_OBJ(N) \ 658 #define CHECK_FOR_OBJ(N) \
658 if (type == LDObject::##N) \ 659 if (type == LDObject::N) \
659 return new LD##N; 660 return new LD##N;
660 LDObject* LDObject::getDefault (const LDObject::Type type) { 661 LDObject* LDObject::getDefault (const LDObject::Type type) {
661 CHECK_FOR_OBJ (Comment) 662 CHECK_FOR_OBJ (Comment)
662 CHECK_FOR_OBJ (BFC) 663 CHECK_FOR_OBJ (BFC)
663 CHECK_FOR_OBJ (Line) 664 CHECK_FOR_OBJ (Line)

mercurial