comparison generator/containergenerator.cpp @ 110:136c9ee83ee5

put conversion code in separate functions
author eldar
date Mon, 01 Jun 2009 23:32:57 +0000
parents 5917a613d118
children 76e5e8597a83
comparison
equal deleted inserted replaced
109:08135aa00cc9 110:136c9ee83ee5
368 convert = "*elem"; 368 convert = "*elem";
369 } else if (centry->isObject() || centry->isQObject() || centry->isValue() || centry->isInterface() || centry->isVariant()) { 369 } else if (centry->isObject() || centry->isQObject() || centry->isValue() || centry->isInterface() || centry->isVariant()) {
370 cpp_type = "void*"; 370 cpp_type = "void*";
371 cpp_assign_type = cpp_type + "*"; 371 cpp_assign_type = cpp_type + "*";
372 d_type = cls_name; 372 d_type = cls_name;
373 if (centry->designatedInterface())
374 d_type = centry->designatedInterface()->name();
373 nativeId = ".nativeId"; 375 nativeId = ".nativeId";
374 } 376 }
375 377
376 if (centry->designatedInterface()) { 378 if (centry->designatedInterface()) {
377 type_name = centry->designatedInterface()->name(); 379 type_name = centry->designatedInterface()->name();