From 3b1278f5459514a6d6364f068ff97b8a0432057b Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Sat, 7 Oct 2023 18:49:13 +0200 Subject: formatted source and header files --- src/mime-printbody.cc | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'src/mime-printbody.cc') diff --git a/src/mime-printbody.cc b/src/mime-printbody.cc index 0c053d3..0c9e0b8 100644 --- a/src/mime-printbody.cc +++ b/src/mime-printbody.cc @@ -2,31 +2,31 @@ * @file mime-printbody.cc * @brief Implementation of main mime parser components * @author Andreas Aardal Hanssen - * @date 2002-2005 + * @date 2002-2005 * ----------------------------------------------------------------- **/ -#include "mime.h" -#include "mime-utils.h" -#include "mime-inputsource.h" - #include "convert.h" #include "iodevice.h" #include "iofactory.h" +#include "mime-inputsource.h" +#include "mime-utils.h" +#include "mime.h" -#include -#include -#include #include #include +#include +#include +#include -#include #include -#include #include +#include +#include using namespace ::std; //------------------------------------------------------------------------ -void Binc::MimePart::printBody(int fd, IODevice &output, +void Binc::MimePart::printBody(int fd, + IODevice &output, unsigned int startoffset, unsigned int length) const { @@ -38,13 +38,11 @@ void Binc::MimePart::printBody(int fd, IODevice &output, mimeSource->reset(); mimeSource->seek(bodystartoffsetcrlf + startoffset); - if (startoffset + length > bodylength) - length = bodylength - startoffset; + if (startoffset + length > bodylength) length = bodylength - startoffset; char c = '\0'; for (unsigned int i = 0; i < length; ++i) { - if (!mimeSource->getChar(&c)) - break; + if (!mimeSource->getChar(&c)) break; output << (char)c; } -- cgit v1.2.3