rem: str.setUnicode( copy, len ); delete [] copy;
context: static void swapEndian(QString &str){  uint len = str.length();  QChar *copy = new QChar[len];  const QChar *orig = str.unicode();  for (uint i = 0; i < len; i++) {    copy[i] = kmail_swap_16(orig[i].unicode());  }  str.setUnicode( copy, len );  delete [] copy;}