diff options
author | Craig Tiller <ctiller@google.com> | 2015-03-02 09:09:38 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-03-02 09:09:38 -0800 |
commit | 22176cbbf89aeef3128d4e01bc51014e11e3e28a (patch) | |
tree | b7dd6281323553169482c9da3a90474964d1640e /src/cpp | |
parent | 1a43f87134c1978bc4f1fbf64fa1b60e13552d64 (diff) |
De-C++11-ification
Diffstat (limited to 'src/cpp')
-rw-r--r-- | src/cpp/server/insecure_server_credentials.cc | 5 | ||||
-rw-r--r-- | src/cpp/server/secure_server_credentials.cc | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/cpp/server/insecure_server_credentials.cc b/src/cpp/server/insecure_server_credentials.cc index 2b0ee77524..f5e4732f73 100644 --- a/src/cpp/server/insecure_server_credentials.cc +++ b/src/cpp/server/insecure_server_credentials.cc @@ -36,9 +36,10 @@ namespace grpc { namespace { -class InsecureServerCredentialsImpl final : public ServerCredentials { +class InsecureServerCredentialsImpl GRPC_FINAL : public ServerCredentials { public: - int AddPortToServer(const grpc::string& addr, grpc_server* server) { + int AddPortToServer(const grpc::string& addr, + grpc_server* server) GRPC_OVERRIDE { return grpc_server_add_http2_port(server, addr.c_str()); } }; diff --git a/src/cpp/server/secure_server_credentials.cc b/src/cpp/server/secure_server_credentials.cc index f90838b086..ff35638503 100644 --- a/src/cpp/server/secure_server_credentials.cc +++ b/src/cpp/server/secure_server_credentials.cc @@ -38,14 +38,15 @@ namespace grpc { namespace { -class SecureServerCredentials final : public ServerCredentials { +class SecureServerCredentials GRPC_FINAL : public ServerCredentials { public: explicit SecureServerCredentials(grpc_server_credentials* creds) : creds_(creds) {} - ~SecureServerCredentials() override { + ~SecureServerCredentials() GRPC_OVERRIDE { grpc_server_credentials_release(creds_); } - int AddPortToServer(const grpc::string& addr, grpc_server* server) override { + int AddPortToServer(const grpc::string& addr, + grpc_server* server) GRPC_OVERRIDE { return grpc_server_add_secure_http2_port(server, addr.c_str(), creds_); } |