src/types.cpp

changeset 402
ec95fc95e5f3
parent 388
7ff483614aa1
child 409
8da2563c645a
equal deleted inserted replaced
401:89a9235b47d3 402:ec95fc95e5f3
25 #include "types.h" 25 #include "types.h"
26 #include "misc.h" 26 #include "misc.h"
27 #include "ldtypes.h" 27 #include "ldtypes.h"
28 #include "file.h" 28 #include "file.h"
29 29
30 str DoFormat( vector<StringFormatArg> args ) 30 str DoFormat( List<StringFormatArg> args )
31 { 31 {
32 assert( args.size() >= 1 ); 32 assert( args.size() >= 1 );
33 str text = args[0].value(); 33 str text = args[0].value();
34 34
35 for( uchar i = 1; i < args.size(); ++i ) 35 for( uchar i = 1; i < args.size(); ++i )
519 519
520 break; 520 break;
521 521
522 case LDObject::Subfile: { 522 case LDObject::Subfile: {
523 LDSubfileObject* ref = static_cast<LDSubfileObject*> (obj); 523 LDSubfileObject* ref = static_cast<LDSubfileObject*> (obj);
524 vector<LDObject*> objs = ref->inlineContents (true, true); 524 List<LDObject*> objs = ref->inlineContents (true, true);
525 525
526 for (LDObject* obj : objs) { 526 for (LDObject* obj : objs) {
527 calcObject (obj); 527 calcObject (obj);
528 delete obj; 528 delete obj;
529 } 529 }

mercurial