From 84ad2e5b1968f3048fb60128420cc4aca6c28eef Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 30 Aug 2021 23:27:32 +0300 Subject: [PATCH] Remove redundant semicolons. --- tdutils/td/utils/port/CxCli.h | 3 ++- tdutils/test/heap.cpp | 2 +- tdutils/test/log.cpp | 2 +- tdutils/test/variant.cpp | 2 +- test/db.cpp | 2 +- test/message_entities.cpp | 2 +- test/poll.cpp | 2 +- test/string_cleaning.cpp | 4 ++-- 8 files changed, 10 insertions(+), 9 deletions(-) diff --git a/tdutils/td/utils/port/CxCli.h b/tdutils/td/utils/port/CxCli.h index a22b2fe38..6d670c0c4 100644 --- a/tdutils/td/utils/port/CxCli.h +++ b/tdutils/td/utils/port/CxCli.h @@ -47,7 +47,8 @@ using Platform::String; using Platform::NullReferenceException; -template class ConcurrentDictionary { +template +class ConcurrentDictionary { public: bool TryGetValue(Key key, Value &value) { std::lock_guard guard(mutex_); diff --git a/tdutils/test/heap.cpp b/tdutils/test/heap.cpp index 6c2c9ad3c..42e09e5d7 100644 --- a/tdutils/test/heap.cpp +++ b/tdutils/test/heap.cpp @@ -33,7 +33,7 @@ TEST(Heap, sort_random_perm) { ASSERT_EQ(i, kheap.top_key()); kheap.pop(); } -}; +} class CheckedHeap { public: diff --git a/tdutils/test/log.cpp b/tdutils/test/log.cpp index 571235d43..e09d565ee 100644 --- a/tdutils/test/log.cpp +++ b/tdutils/test/log.cpp @@ -92,7 +92,7 @@ static void bench_log(std::string name, F &&f) { bench(LogBenchmark(name, threads_n, test_full_logging, f)); } } -}; +} TEST(Log, Bench) { bench_log("NullLog", [] { return td::make_unique(); }); diff --git a/tdutils/test/variant.cpp b/tdutils/test/variant.cpp index 9e289eb8b..fe9510c18 100644 --- a/tdutils/test/variant.cpp +++ b/tdutils/test/variant.cpp @@ -68,4 +68,4 @@ TEST(Variant, simple) { } ASSERT_STREQ("-C", move_sb()); sb.clear(); -}; +} diff --git a/test/db.cpp b/test/db.cpp index 2badeeda4..3bec137d0 100644 --- a/test/db.cpp +++ b/test/db.cpp @@ -132,7 +132,7 @@ TEST(DB, binlog_encryption) { binlog_name.str(), [&](const BinlogEvent &x) { v.push_back(x.data_.str()); }, cucumber, hello); CHECK(v == std::vector({"AAAA", "BBBB", long_data, "CCCC"})); } -}; +} TEST(DB, sqlite_lfs) { string path = "test_sqlite_db"; diff --git a/test/message_entities.cpp b/test/message_entities.cpp index 2ba6130f8..e74fa8e60 100644 --- a/test/message_entities.cpp +++ b/test/message_entities.cpp @@ -48,7 +48,7 @@ TEST(MessageEntities, mention) { check_mention( "@ya @gif @wiki @vid @bing @pic @bold @imdb @ImDb @coub @like @vote @giff @cap ya cap @y @yar @bingg @bin", {"@gif", "@wiki", "@vid", "@bing", "@pic", "@bold", "@imdb", "@ImDb", "@coub", "@like", "@vote", "@bingg"}); -}; +} static void check_bot_command(const td::string &str, const td::vector &expected) { auto result_slice = td::find_bot_commands(str); diff --git a/test/poll.cpp b/test/poll.cpp index 26c9a98f8..3bd5a88a0 100644 --- a/test/poll.cpp +++ b/test/poll.cpp @@ -55,4 +55,4 @@ TEST(Poll, get_vote_percentage) { check_vote_percentage({200, 200, 200, 300, 240, 60}, 1200, {16, 16, 16, 25, 20, 5}); check_vote_percentage({200, 200, 200, 250, 250, 20}, 1120, {18, 18, 18, 22, 22, 2}); check_vote_percentage({200, 200, 200, 250, 250, 40}, 1140, {17, 17, 17, 22, 22, 4}); -}; +} diff --git a/test/string_cleaning.cpp b/test/string_cleaning.cpp index 660d88369..0b60b825d 100644 --- a/test/string_cleaning.cpp +++ b/test/string_cleaning.cpp @@ -25,7 +25,7 @@ TEST(StringCleaning, clean_name) { ASSERT_EQ("abc", clean_name("\xC2\xA0\xC2\xA0" "abc\xC2\xA0\xC2\xA0\xC2\xA0\xC2\xA0", 1000000)); -}; +} TEST(StringCleaning, clean_username) { ASSERT_EQ("@mention", clean_username("@mention")); @@ -34,7 +34,7 @@ TEST(StringCleaning, clean_username) { ASSERT_EQ("ЛШТШФУМ", clean_username("ЛШТШФУМ")); ASSERT_EQ("", clean_username("....")); ASSERT_EQ("asd", clean_username(". ASD ..")); -}; +} static void check_clean_input_string(string str, string expected, bool expected_result) { auto result = clean_input_string(str);