You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by ww...@apache.org on 2022/11/21 02:19:02 UTC
[incubator-brpc] branch master updated: remove unnecessary semicolon (#2004)
This is an automated email from the ASF dual-hosted git repository.
wwbmmm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git
The following commit(s) were added to refs/heads/master by this push:
new 581c7b1a remove unnecessary semicolon (#2004)
581c7b1a is described below
commit 581c7b1aaa4a37d64ef7267320e033d9f68ee4fb
Author: 果冻虾仁 <gu...@apache.org>
AuthorDate: Mon Nov 21 10:18:51 2022 +0800
remove unnecessary semicolon (#2004)
* example
* src,tool
---
example/asynchronous_echo_c++/server.cpp | 4 ++--
example/auto_concurrency_limiter/server.cpp | 2 +-
example/backup_request_c++/server.cpp | 4 ++--
example/cancel_c++/server.cpp | 4 ++--
example/cascade_echo_c++/server.cpp | 4 ++--
example/dynamic_partition_echo_c++/server.cpp | 2 +-
example/echo_c++/server.cpp | 4 ++--
example/grpc_c++/server.cpp | 4 ++--
example/http_c++/http_server.cpp | 12 ++++++------
example/multi_threaded_echo_c++/server.cpp | 2 +-
example/multi_threaded_echo_fns_c++/server.cpp | 2 +-
example/nshead_pb_extension_c++/server.cpp | 4 ++--
example/parallel_echo_c++/server.cpp | 2 +-
example/partition_echo_c++/server.cpp | 2 +-
example/rdma_performance/server.cpp | 2 +-
example/selective_echo_c++/server.cpp | 2 +-
example/streaming_echo_c++/server.cpp | 2 +-
src/brpc/socket.h | 2 +-
src/brpc/thrift_message.h | 2 +-
src/bvar/recorder.h | 2 +-
tools/rpc_view/rpc_view.cpp | 2 +-
tools/trackme_server/trackme_server.cpp | 2 +-
22 files changed, 34 insertions(+), 34 deletions(-)
diff --git a/example/asynchronous_echo_c++/server.cpp b/example/asynchronous_echo_c++/server.cpp
index b91654b8..36bb00d4 100644
--- a/example/asynchronous_echo_c++/server.cpp
+++ b/example/asynchronous_echo_c++/server.cpp
@@ -32,8 +32,8 @@ DEFINE_int32(logoff_ms, 2000, "Maximum duration of server's LOGOFF state "
// Your implementation of example::EchoService
class EchoServiceImpl : public example::EchoService {
public:
- EchoServiceImpl() {};
- virtual ~EchoServiceImpl() {};
+ EchoServiceImpl() {}
+ virtual ~EchoServiceImpl() {}
virtual void Echo(google::protobuf::RpcController* cntl_base,
const example::EchoRequest* request,
example::EchoResponse* response,
diff --git a/example/auto_concurrency_limiter/server.cpp b/example/auto_concurrency_limiter/server.cpp
index 45580920..c65be9db 100644
--- a/example/auto_concurrency_limiter/server.cpp
+++ b/example/auto_concurrency_limiter/server.cpp
@@ -93,7 +93,7 @@ public:
, _running_case(false) {
};
- virtual ~EchoServiceImpl() {};
+ virtual ~EchoServiceImpl() {}
void SetTestCase(const test::TestCase& test_case) {
_test_case = test_case;
diff --git a/example/backup_request_c++/server.cpp b/example/backup_request_c++/server.cpp
index 6ecfa91b..de3902a4 100644
--- a/example/backup_request_c++/server.cpp
+++ b/example/backup_request_c++/server.cpp
@@ -37,8 +37,8 @@ namespace example {
class SleepyEchoService : public EchoService
, public brpc::Describable {
public:
- SleepyEchoService() : _count(0) {};
- virtual ~SleepyEchoService() {};
+ SleepyEchoService() : _count(0) {}
+ virtual ~SleepyEchoService() {}
virtual void Echo(google::protobuf::RpcController* cntl_base,
const EchoRequest* request,
EchoResponse* response,
diff --git a/example/cancel_c++/server.cpp b/example/cancel_c++/server.cpp
index df07b16b..d590ff11 100644
--- a/example/cancel_c++/server.cpp
+++ b/example/cancel_c++/server.cpp
@@ -35,8 +35,8 @@ DEFINE_int32(logoff_ms, 2000, "Maximum duration of server's LOGOFF state "
namespace example {
class EchoServiceImpl : public EchoService {
public:
- EchoServiceImpl() {};
- virtual ~EchoServiceImpl() {};
+ EchoServiceImpl() {}
+ virtual ~EchoServiceImpl() {}
virtual void Echo(google::protobuf::RpcController* cntl_base,
const EchoRequest* request,
EchoResponse* response,
diff --git a/example/cascade_echo_c++/server.cpp b/example/cascade_echo_c++/server.cpp
index 47f1dd9d..de19e660 100644
--- a/example/cascade_echo_c++/server.cpp
+++ b/example/cascade_echo_c++/server.cpp
@@ -38,8 +38,8 @@ brpc::Channel channel;
namespace example {
class CascadeEchoService : public EchoService {
public:
- CascadeEchoService() {};
- virtual ~CascadeEchoService() {};
+ CascadeEchoService() {}
+ virtual ~CascadeEchoService() {}
virtual void Echo(google::protobuf::RpcController* cntl_base,
const EchoRequest* request,
EchoResponse* response,
diff --git a/example/dynamic_partition_echo_c++/server.cpp b/example/dynamic_partition_echo_c++/server.cpp
index 2437c9cb..9f81f9cb 100644
--- a/example/dynamic_partition_echo_c++/server.cpp
+++ b/example/dynamic_partition_echo_c++/server.cpp
@@ -45,7 +45,7 @@ DEFINE_double(max_ratio, 10, "max_sleep / sleep_us");
class EchoServiceImpl : public example::EchoService {
public:
EchoServiceImpl() : _index(0) {}
- virtual ~EchoServiceImpl() {};
+ virtual ~EchoServiceImpl() {}
void set_index(size_t index, int64_t sleep_us) {
_index = index;
_sleep_us = sleep_us;
diff --git a/example/echo_c++/server.cpp b/example/echo_c++/server.cpp
index 41ffd0b1..9e06b4c8 100644
--- a/example/echo_c++/server.cpp
+++ b/example/echo_c++/server.cpp
@@ -37,8 +37,8 @@ DEFINE_int32(logoff_ms, 2000, "Maximum duration of server's LOGOFF state "
namespace example {
class EchoServiceImpl : public EchoService {
public:
- EchoServiceImpl() {};
- virtual ~EchoServiceImpl() {};
+ EchoServiceImpl() {}
+ virtual ~EchoServiceImpl() {}
virtual void Echo(google::protobuf::RpcController* cntl_base,
const EchoRequest* request,
EchoResponse* response,
diff --git a/example/grpc_c++/server.cpp b/example/grpc_c++/server.cpp
index b12d01f5..7daaf39b 100644
--- a/example/grpc_c++/server.cpp
+++ b/example/grpc_c++/server.cpp
@@ -32,8 +32,8 @@ DEFINE_bool(gzip, false, "compress body using gzip");
class GreeterImpl : public helloworld::Greeter {
public:
- GreeterImpl() {};
- virtual ~GreeterImpl() {};
+ GreeterImpl() {}
+ virtual ~GreeterImpl() {}
void SayHello(google::protobuf::RpcController* cntl_base,
const helloworld::HelloRequest* req,
helloworld::HelloReply* res,
diff --git a/example/http_c++/http_server.cpp b/example/http_c++/http_server.cpp
index d20ee71a..eab39e27 100644
--- a/example/http_c++/http_server.cpp
+++ b/example/http_c++/http_server.cpp
@@ -38,8 +38,8 @@ namespace example {
// Service with static path.
class HttpServiceImpl : public HttpService {
public:
- HttpServiceImpl() {};
- virtual ~HttpServiceImpl() {};
+ HttpServiceImpl() {}
+ virtual ~HttpServiceImpl() {}
void Echo(google::protobuf::RpcController* cntl_base,
const HttpRequest*,
HttpResponse*,
@@ -66,8 +66,8 @@ public:
// Service with dynamic path.
class FileServiceImpl : public FileService {
public:
- FileServiceImpl() {};
- virtual ~FileServiceImpl() {};
+ FileServiceImpl() {}
+ virtual ~FileServiceImpl() {}
struct Args {
butil::intrusive_ptr<brpc::ProgressiveAttachment> pa;
@@ -116,8 +116,8 @@ public:
// when adding the service into server).
class QueueServiceImpl : public example::QueueService {
public:
- QueueServiceImpl() {};
- virtual ~QueueServiceImpl() {};
+ QueueServiceImpl() {}
+ virtual ~QueueServiceImpl() {}
void start(google::protobuf::RpcController* cntl_base,
const HttpRequest*,
HttpResponse*,
diff --git a/example/multi_threaded_echo_c++/server.cpp b/example/multi_threaded_echo_c++/server.cpp
index b3c65e21..71e62093 100644
--- a/example/multi_threaded_echo_c++/server.cpp
+++ b/example/multi_threaded_echo_c++/server.cpp
@@ -36,7 +36,7 @@ namespace example {
class EchoServiceImpl : public EchoService {
public:
EchoServiceImpl() {}
- ~EchoServiceImpl() {};
+ ~EchoServiceImpl() {}
void Echo(google::protobuf::RpcController* cntl_base,
const EchoRequest* request,
EchoResponse* response,
diff --git a/example/multi_threaded_echo_fns_c++/server.cpp b/example/multi_threaded_echo_fns_c++/server.cpp
index 45ac381d..4c30188c 100644
--- a/example/multi_threaded_echo_fns_c++/server.cpp
+++ b/example/multi_threaded_echo_fns_c++/server.cpp
@@ -46,7 +46,7 @@ DEFINE_double(max_ratio, 10, "max_sleep / sleep_us");
class EchoServiceImpl : public example::EchoService {
public:
EchoServiceImpl() : _index(0) {}
- virtual ~EchoServiceImpl() {};
+ virtual ~EchoServiceImpl() {}
void set_index(size_t index, int64_t sleep_us) {
_index = index;
_sleep_us = sleep_us;
diff --git a/example/nshead_pb_extension_c++/server.cpp b/example/nshead_pb_extension_c++/server.cpp
index 3980a911..4f67ecd8 100644
--- a/example/nshead_pb_extension_c++/server.cpp
+++ b/example/nshead_pb_extension_c++/server.cpp
@@ -32,8 +32,8 @@ DEFINE_int32(idle_timeout_s, -1, "Connection will be closed if there is no "
namespace example {
class EchoServiceImpl : public EchoService {
public:
- EchoServiceImpl() {};
- virtual ~EchoServiceImpl() {};
+ EchoServiceImpl() {}
+ virtual ~EchoServiceImpl() {}
virtual void Echo(google::protobuf::RpcController*,
const EchoRequest* request,
EchoResponse* response,
diff --git a/example/parallel_echo_c++/server.cpp b/example/parallel_echo_c++/server.cpp
index e7b77150..4ceba54e 100644
--- a/example/parallel_echo_c++/server.cpp
+++ b/example/parallel_echo_c++/server.cpp
@@ -35,7 +35,7 @@ DEFINE_int32(max_concurrency, 0, "Limit of request processing in parallel");
class EchoServiceImpl : public example::EchoService {
public:
EchoServiceImpl() {}
- ~EchoServiceImpl() {};
+ ~EchoServiceImpl() {}
void Echo(google::protobuf::RpcController* cntl_base,
const example::EchoRequest* request,
example::EchoResponse* response,
diff --git a/example/partition_echo_c++/server.cpp b/example/partition_echo_c++/server.cpp
index 657b4677..32cabbb5 100644
--- a/example/partition_echo_c++/server.cpp
+++ b/example/partition_echo_c++/server.cpp
@@ -45,7 +45,7 @@ DEFINE_double(max_ratio, 10, "max_sleep / sleep_us");
class EchoServiceImpl : public example::EchoService {
public:
EchoServiceImpl() : _index(0) {}
- virtual ~EchoServiceImpl() {};
+ virtual ~EchoServiceImpl() {}
void set_index(size_t index, int64_t sleep_us) {
_index = index;
_sleep_us = sleep_us;
diff --git a/example/rdma_performance/server.cpp b/example/rdma_performance/server.cpp
index e06f7950..82e17583 100644
--- a/example/rdma_performance/server.cpp
+++ b/example/rdma_performance/server.cpp
@@ -32,7 +32,7 @@ namespace test {
class PerfTestServiceImpl : public PerfTestService {
public:
PerfTestServiceImpl() {}
- ~PerfTestServiceImpl() {};
+ ~PerfTestServiceImpl() {}
void Test(google::protobuf::RpcController* cntl_base,
const PerfTestRequest* request,
diff --git a/example/selective_echo_c++/server.cpp b/example/selective_echo_c++/server.cpp
index 63fd183e..53736ec9 100644
--- a/example/selective_echo_c++/server.cpp
+++ b/example/selective_echo_c++/server.cpp
@@ -44,7 +44,7 @@ DEFINE_double(max_ratio, 10, "max_sleep / sleep_us");
class EchoServiceImpl : public example::EchoService {
public:
EchoServiceImpl() : _index(0) {}
- virtual ~EchoServiceImpl() {};
+ virtual ~EchoServiceImpl() {}
void set_index(size_t index, int64_t sleep_us) {
_index = index;
_sleep_us = sleep_us;
diff --git a/example/streaming_echo_c++/server.cpp b/example/streaming_echo_c++/server.cpp
index 26837f64..3460d5f1 100644
--- a/example/streaming_echo_c++/server.cpp
+++ b/example/streaming_echo_c++/server.cpp
@@ -54,7 +54,7 @@ public:
// Your implementation of example::EchoService
class StreamingEchoService : public example::EchoService {
public:
- StreamingEchoService() : _sd(brpc::INVALID_STREAM_ID) {};
+ StreamingEchoService() : _sd(brpc::INVALID_STREAM_ID) {}
virtual ~StreamingEchoService() {
brpc::StreamClose(_sd);
};
diff --git a/src/brpc/socket.h b/src/brpc/socket.h
index 014e79b0..6f710ee2 100644
--- a/src/brpc/socket.h
+++ b/src/brpc/socket.h
@@ -64,7 +64,7 @@ class Stream;
class SocketUser {
public:
virtual ~SocketUser() {}
- virtual void BeforeRecycle(Socket*) {};
+ virtual void BeforeRecycle(Socket*) {}
// Will be periodically called in a dedicated thread to check the
// health.
diff --git a/src/brpc/thrift_message.h b/src/brpc/thrift_message.h
index 73716c12..53041c85 100644
--- a/src/brpc/thrift_message.h
+++ b/src/brpc/thrift_message.h
@@ -49,7 +49,7 @@ static const int16_t THRIFT_RESPONSE_FID = 0;
// from ThriftMessageBase which can be stored and handled uniformly.
class ThriftMessageBase {
public:
- virtual ~ThriftMessageBase() {};
+ virtual ~ThriftMessageBase() {}
virtual uint32_t Read(::apache::thrift::protocol::TProtocol* iprot) = 0;
virtual uint32_t Write(::apache::thrift::protocol::TProtocol* oprot) const = 0;
};
diff --git a/src/bvar/recorder.h b/src/bvar/recorder.h
index 33bb65d4..9b73a19b 100644
--- a/src/bvar/recorder.h
+++ b/src/bvar/recorder.h
@@ -31,7 +31,7 @@
namespace bvar {
struct Stat {
- Stat() : sum(0), num(0) {};
+ Stat() : sum(0), num(0) {}
Stat(int64_t sum2, int64_t num2) : sum(sum2), num(num2) {}
int64_t sum;
int64_t num;
diff --git a/tools/rpc_view/rpc_view.cpp b/tools/rpc_view/rpc_view.cpp
index 39d7a2ac..51de9150 100644
--- a/tools/rpc_view/rpc_view.cpp
+++ b/tools/rpc_view/rpc_view.cpp
@@ -67,7 +67,7 @@ static void handle_response(brpc::Controller* client_cntl,
class ViewServiceImpl : public ViewService {
public:
ViewServiceImpl() {}
- virtual ~ViewServiceImpl() {};
+ virtual ~ViewServiceImpl() {}
virtual void default_method(google::protobuf::RpcController* cntl_base,
const HttpRequest*,
HttpResponse*,
diff --git a/tools/trackme_server/trackme_server.cpp b/tools/trackme_server/trackme_server.cpp
index 22f96c5e..541f544a 100644
--- a/tools/trackme_server/trackme_server.cpp
+++ b/tools/trackme_server/trackme_server.cpp
@@ -60,7 +60,7 @@ class TrackMeServiceImpl : public brpc::TrackMeService {
public:
explicit TrackMeServiceImpl(BugsLoader* bugs) : _bugs(bugs) {
}
- ~TrackMeServiceImpl() {};
+ ~TrackMeServiceImpl() {}
void TrackMe(google::protobuf::RpcController* cntl_base,
const brpc::TrackMeRequest* request,
brpc::TrackMeResponse* response,
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org