From b24aadc8984c56dde1fa1eaf2a1357430ca41ded Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 28 Jun 2024 09:51:50 +0100 Subject: [PATCH] style: clang-tidy auto fixes (#1499) Fixes #1498. Please review and commit clang-tidy fixes. Co-authored-by: kuznetsss --- src/data/AmendmentCenter.cpp | 1 - src/rpc/common/impl/HandlerProvider.cpp | 1 - tests/unit/data/AmendmentCenterTests.cpp | 2 +- tests/unit/rpc/handlers/AccountInfoTests.cpp | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/data/AmendmentCenter.cpp b/src/data/AmendmentCenter.cpp index e16d8842..54de98b4 100644 --- a/src/data/AmendmentCenter.cpp +++ b/src/data/AmendmentCenter.cpp @@ -24,7 +24,6 @@ #include "util/Assert.hpp" #include -#include #include #include #include diff --git a/src/rpc/common/impl/HandlerProvider.cpp b/src/rpc/common/impl/HandlerProvider.cpp index 70091583..88e86d62 100644 --- a/src/rpc/common/impl/HandlerProvider.cpp +++ b/src/rpc/common/impl/HandlerProvider.cpp @@ -19,7 +19,6 @@ #include "rpc/common/impl/HandlerProvider.hpp" -#include "data/AmendmentCenter.hpp" #include "data/AmendmentCenterInterface.hpp" #include "data/BackendInterface.hpp" #include "etl/ETLService.hpp" diff --git a/tests/unit/data/AmendmentCenterTests.cpp b/tests/unit/data/AmendmentCenterTests.cpp index 147b96b9..7c181229 100644 --- a/tests/unit/data/AmendmentCenterTests.cpp +++ b/tests/unit/data/AmendmentCenterTests.cpp @@ -102,7 +102,7 @@ struct AmendmentKeyTest : testing::Test {}; TEST_F(AmendmentKeyTest, Convertible) { - std::string key1 = "key1"; + std::string const key1 = "key1"; auto key2 = "key2"; EXPECT_NO_THROW({ diff --git a/tests/unit/rpc/handlers/AccountInfoTests.cpp b/tests/unit/rpc/handlers/AccountInfoTests.cpp index 44dcc9d5..77004173 100644 --- a/tests/unit/rpc/handlers/AccountInfoTests.cpp +++ b/tests/unit/rpc/handlers/AccountInfoTests.cpp @@ -18,7 +18,6 @@ //============================================================================== #include "data/AmendmentCenter.hpp" -#include "data/AmendmentCenterInterface.hpp" #include "data/Types.hpp" #include "rpc/Errors.hpp" #include "rpc/common/AnyHandler.hpp"