add missing GRPC_FINAL

pull/1003/head
Yang Gao 10 years ago
parent 2a3c96a869
commit 179f8684dc
  1. 4
      include/grpc++/generic_service.h
  2. 2
      include/grpc++/generic_stub.h

@ -43,7 +43,7 @@ namespace grpc {
typedef ServerAsyncReaderWriter<ByteBuffer, ByteBuffer> GenericServerReaderWriter;
class GenericServerContext : public ServerContext {
class GenericServerContext GRPC_FINAL : public ServerContext {
public:
const grpc::string& method() const { return method_; }
const grpc::string& host() const { return host_; }
@ -55,7 +55,7 @@ class GenericServerContext : public ServerContext {
grpc::string host_;
};
class GenericService {
class GenericService GRPC_FINAL {
public:
// TODO(yangg) Once we can add multiple completion queues to the server
// in c core, add a CompletionQueue* argument to the ctor here.

@ -43,7 +43,7 @@ typedef ClientAsyncReaderWriter<ByteBuffer, ByteBuffer> GenericClientReaderWrite
// Generic stubs provide a type-unsafe interface to call gRPC methods
// by name.
class GenericStub {
class GenericStub GRPC_FINAL {
public:
explicit GenericStub(std::shared_ptr<ChannelInterface> channel) : channel_(channel) {}

Loading…
Cancel
Save