From 79f8e1b95906cda489ff34f87ce62757357e01b8 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Wed, 16 Oct 2019 21:07:09 +0200 Subject: [PATCH] [AFV] Ref T739, CPPCheck fixes --- src/blackcore/fsd/clientidentification.cpp | 1 - src/blackcore/fsd/clientidentification.h | 2 +- src/blacksound/dsp/SimpleLimit.cpp | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/blackcore/fsd/clientidentification.cpp b/src/blackcore/fsd/clientidentification.cpp index d84cfceb3..3c52c9250 100644 --- a/src/blackcore/fsd/clientidentification.cpp +++ b/src/blackcore/fsd/clientidentification.cpp @@ -7,7 +7,6 @@ */ #include "clientidentification.h" - #include "blackmisc/logmessage.h" namespace BlackCore diff --git a/src/blackcore/fsd/clientidentification.h b/src/blackcore/fsd/clientidentification.h index fd11999aa..7d54e7354 100644 --- a/src/blackcore/fsd/clientidentification.h +++ b/src/blackcore/fsd/clientidentification.h @@ -37,7 +37,7 @@ namespace BlackCore //! PDU identifier static QString pdu() { return "$ID"; } - std::uint16_t m_clientId; + std::uint16_t m_clientId = 0; QString m_clientName; int m_clientVersionMajor = BlackConfig::CBuildConfig::getVersion().majorVersion(); int m_clientVersionMinor = BlackConfig::CBuildConfig::getVersion().minorVersion(); diff --git a/src/blacksound/dsp/SimpleLimit.cpp b/src/blacksound/dsp/SimpleLimit.cpp index 9cb05cc7c..a6ba681e9 100644 --- a/src/blacksound/dsp/SimpleLimit.cpp +++ b/src/blacksound/dsp/SimpleLimit.cpp @@ -45,7 +45,7 @@ namespace chunkware_simple , mask_(BUFFER_SIZE - 1) , cur_(0) { - setAttack(1.0); + setAttackImpl(1.0); outBuffer_[ 0 ].resize(BUFFER_SIZE, 0.0); outBuffer_[ 1 ].resize(BUFFER_SIZE, 0.0); }