src/types.cpp

changeset 504
6a1fa662bfc1
parent 498
791c831c8020
child 508
7ace3537a560
equal deleted inserted replaced
503:bebe09014dd6 504:6a1fa662bfc1
27 #include "ldtypes.h" 27 #include "ldtypes.h"
28 #include "file.h" 28 #include "file.h"
29 29
30 // ============================================================================= 30 // =============================================================================
31 // ----------------------------------------------------------------------------- 31 // -----------------------------------------------------------------------------
32 str DoFormat (List<StringFormatArg> args) 32 str DoFormat (QList<StringFormatArg> args)
33 { assert (args.size() >= 1); 33 { assert (args.size() >= 1);
34 str text = args[0].value(); 34 str text = args[0].value();
35 35
36 for (uchar i = 1; i < args.size(); ++i) 36 for (uchar i = 1; i < args.size(); ++i)
37 text = text.arg (args[i].value()); 37 text = text.arg (args[i].value());
521 521
522 break; 522 break;
523 523
524 case LDObject::Subfile: 524 case LDObject::Subfile:
525 { LDSubfile* ref = static_cast<LDSubfile*> (obj); 525 { LDSubfile* ref = static_cast<LDSubfile*> (obj);
526 List<LDObject*> objs = ref->inlineContents (LDSubfile::DeepCacheInline); 526 QList<LDObject*> objs = ref->inlineContents (LDSubfile::DeepCacheInline);
527 527
528 for (LDObject * obj : objs) 528 for (LDObject * obj : objs)
529 { calcObject (obj); 529 { calcObject (obj);
530 delete obj; 530 delete obj;
531 } 531 }

mercurial