Hi
I would like to know if when I return QList<QDomDocument> from function, is it copied in memory, or only some reference to this xml's is returned?
These xml's contains files (base64 encoded) so they are really big.
Simplified example is like this
Qt Code:
QList<QDomDocument> MyClass::createXmls() { QList<QDomDocument> xmls; for(int i=0;i<something;i++) { //create xmls QDomDocument xml; // fill in xml... xmls.append(xml); } return xmls; } void MyClass::sendXmls() { QList<QDomDocument> xmls=this->createXmls(); // process xmls in loop }To copy to clipboard, switch view to plain text mode
best regards
Marek
Bookmarks