politically correct version from Simon

Reviewed and tested by me

svn path=/trunk/kdepim/; revision=270964
wilder-work
Stephan Kulow 23 years ago
parent e827dff20b
commit 903de1fcd2
  1. 6
      kmmsgbase.cpp

@ -20,6 +20,7 @@ using KMail::MessageProperty;
#include <kmime_codecs.h>
#include <qtextcodec.h>
#include <qdeepcopy.h>
#include <ctype.h>
#include <stdlib.h>
@ -1004,11 +1005,10 @@ void KMMsgBase::setTransferInProgress(bool value, bool force)
static void swapEndian(QString &str)
{
uint len = str.length();
str = QDeepCopy<QString>(str);
QChar *unicode = const_cast<QChar*>( str.unicode() );
str.setLength( len ); // detach
for (uint i = 0; i < len; i++) {
for (uint i = 0; i < len; i++)
unicode[i] = kmail_swap_16(unicode[i].unicode());
}
}
//-----------------------------------------------------------------------------

Loading…
Cancel
Save