From 1978c49bea5b439d993067c055cec47e70db8fd6 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Sat, 7 Oct 2023 22:33:50 +0200 Subject: minor refactoring --- src/mime-parseonlyheader.cc | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'src/mime-parseonlyheader.cc') diff --git a/src/mime-parseonlyheader.cc b/src/mime-parseonlyheader.cc index 5245aa5..36679b2 100644 --- a/src/mime-parseonlyheader.cc +++ b/src/mime-parseonlyheader.cc @@ -1,9 +1,10 @@ -/** -------------------------------------------------------------------- +/** * @file mime-parseonlyheader.cc * @brief Implementation of main mime parser components * @author Andreas Aardal Hanssen * @date 2002-2005 - * ----------------------------------------------------------------- **/ + */ + #include "convert.h" #include "mime-inputsource.h" #include "mime-utils.h" @@ -20,9 +21,6 @@ #include #include -using namespace ::std; - -//------------------------------------------------------------------------ void Binc::MimeDocument::parseOnlyHeader(int fd) const { if (allIsParsed || headerIsParsed) return; @@ -36,7 +34,6 @@ void Binc::MimeDocument::parseOnlyHeader(int fd) const mimeSource->reset(); } - headerstartoffsetcrlf = 0; headerlength = 0; bodystartoffsetcrlf = 0; @@ -50,11 +47,10 @@ void Binc::MimeDocument::parseOnlyHeader(int fd) const MimePart::parseOnlyHeader(""); } -//------------------------------------------------------------------------ -int Binc::MimePart::parseOnlyHeader(const string &toboundary) const +int Binc::MimePart::parseOnlyHeader(const std::string &toboundary) const { - string name; - string content; + std::string name; + std::string content; char cqueue[4]; memset(cqueue, 0, sizeof(cqueue)); -- cgit v1.2.3