From 6cb63ed9b2a90e03413b0dee40106070d6a07bce Mon Sep 17 00:00:00 2001 From: Sergey Kuznetsov Date: Wed, 3 Jul 2024 09:16:26 +0100 Subject: [PATCH] style: Fix clang-tidy issues (#1510) Fixes #1508, #1506, #1500 --- tests/unit/data/AmendmentCenterTests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/data/AmendmentCenterTests.cpp b/tests/unit/data/AmendmentCenterTests.cpp index 14827354..88811b09 100644 --- a/tests/unit/data/AmendmentCenterTests.cpp +++ b/tests/unit/data/AmendmentCenterTests.cpp @@ -110,11 +110,11 @@ TEST_F(AmendmentKeyTest, Convertible) auto const second = AmendmentKey(key2); auto const third = AmendmentKey("test"); - std::string s1 = first; + std::string const s1 = first; EXPECT_EQ(s1, key1); - ripple::uint256 k1 = first; - ripple::uint256 k2 = second; + ripple::uint256 const k1 = first; + ripple::uint256 const k2 = second; EXPECT_EQ(k1, ripple::uint256{"7E365F775657DC0EB960E6295A1F44B3F67479F54D5D12C5D87E6DB234F072E3"}); EXPECT_EQ(k2, ripple::uint256{"B4F33541E0E2FC2F7AA17D2D2E6A9B424809123485251D3413E91CC462309772"});