make it compile

svn path=/trunk/KDE/kdepim/; revision=435240
wilder-work
Andr Wbbeking 21 years ago
parent 3689d5d8ab
commit 1debc8cf81
  1. 5
      kmreaderwin.cpp

@ -52,7 +52,6 @@ using KMail::ISubject;
using KMail::URLHandlerManager;
#include "interfaces/observable.h"
#include "util.h"
using KMail::Util;
#include "broadcaststatus.h"
@ -857,7 +856,7 @@ void KMReaderWin::update( KMail::Interface::Observable * observable )
QByteArray data = node->msgPart().bodyDecodedBinary();
size_t size = data.size();
if ( node->msgPart().type() == DwMime::kTypeText && size) {
size = Util::crlf2lf( data.data(), size );
size = KMail::Util::crlf2lf( data.data(), size );
}
KPIM::kBytesToFile( data.data(), size, mAtmCurrentName, false, false, false );
::chmod( QFile::encodeName( mAtmCurrentName ), S_IRUSR );
@ -1669,7 +1668,7 @@ QString KMReaderWin::writeMessagePartToTempFile( KMMessagePart* aMsgPart,
size_t size = data.size();
if ( aMsgPart->type() == DwMime::kTypeText && size) {
// convert CRLF to LF before writing text attachments to disk
size = Util::crlf2lf( data.data(), size );
size = KMail::Util::crlf2lf( data.data(), size );
}
if( !KPIM::kBytesToFile( data.data(), size, fname, false, false, false ) )
return QString::null;

Loading…
Cancel
Save