From 23ab2a6a3c927c99bfc1a0bedd94e283c05ca59d Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Thu, 25 Nov 2021 21:57:07 +0100 Subject: Fixed Cppcheck issues. --- tests/net/smtp/SMTPTransportTestUtils.hpp | 1 + tests/testUtils.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/net/smtp/SMTPTransportTestUtils.hpp b/tests/net/smtp/SMTPTransportTestUtils.hpp index 8710639f..c0d4e54f 100644 --- a/tests/net/smtp/SMTPTransportTestUtils.hpp +++ b/tests/net/smtp/SMTPTransportTestUtils.hpp @@ -241,6 +241,7 @@ public: m_state = STATE_NOT_CONNECTED; m_bdatChunkCount = 0; + m_bdatChunkSize = m_bdatChunkReceived = 0; m_ehloSent = m_mailSent = m_rcptSent = m_quitSent = false; } diff --git a/tests/testUtils.hpp b/tests/testUtils.hpp index f625dec0..06ddb3e2 100644 --- a/tests/testUtils.hpp +++ b/tests/testUtils.hpp @@ -93,7 +93,7 @@ namespace CppUnit { // Work-around for comparing 'std::string' against 'char*' inline void assertEquals( const char* expected, - const std::string actual, + const std::string &actual, SourceLine sourceLine, const std::string &message ) { -- cgit v1.2.3