De-C++11-ification

pull/835/head
Craig Tiller 10 years ago
parent 1a43f87134
commit 22176cbbf8
  1. 5
      src/cpp/server/insecure_server_credentials.cc
  2. 7
      src/cpp/server/secure_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());
}
};

@ -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_);
}

Loading…
Cancel
Save