diff options
Diffstat (limited to 'src/dkimbase.cpp')
-rw-r--r-- | src/dkimbase.cpp | 47 |
1 files changed, 22 insertions, 25 deletions
diff --git a/src/dkimbase.cpp b/src/dkimbase.cpp index c27e767..0361d8e 100644 --- a/src/dkimbase.cpp +++ b/src/dkimbase.cpp @@ -1,19 +1,19 @@ /***************************************************************************** -* Copyright 2005 Alt-N Technologies, Ltd. +* Copyright 2005 Alt-N Technologies, Ltd. * -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at * -* http://www.apache.org/licenses/LICENSE-2.0 +* http://www.apache.org/licenses/LICENSE-2.0 * -* This code incorporates intellectual property owned by Yahoo! and licensed +* This code incorporates intellectual property owned by Yahoo! and licensed * pursuant to the Yahoo! DomainKeys Patent License Agreement. * -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and * limitations under the License. * * Changes done by ¢feh@fehcom.de obeying the above license @@ -28,18 +28,17 @@ #include "dkim.h" -CDKIMBase::CDKIMBase() -{ - m_From = NULL; - m_Sender = NULL; - m_hTag = NULL; - m_hTagSize = 0; - m_hTagPos = 0; - m_Line = NULL; - m_LineSize = 0; - m_LinePos = 0; - m_InHeaders = true; -} +CDKIMBase::CDKIMBase() : + m_From(nullptr), + m_Sender(nullptr), + m_hTag(nullptr), + m_hTagSize(0), + m_hTagPos(0), + m_Line(nullptr), + m_LineSize(0), + m_LinePos(0), + m_InHeaders(true) +{} CDKIMBase::~CDKIMBase() // delete { @@ -168,9 +167,7 @@ int CDKIMBase::Process(const char *szBuffer, int nBufLength, bool bEOF) //////////////////////////////////////////////////////////////////////////////// int CDKIMBase::ProcessFinal(void) { - if (m_LinePos > 0) { - Process("\r\n", 2, true); - } + if (m_LinePos > 0) Process("\r\n", 2, true); if (m_InHeaders) { m_InHeaders = false; |