clang-format

pull/14517/head
makdharma 7 years ago
parent 757af97ad0
commit c8e523351e
  1. 5
      include/grpcpp/server_builder.h

@ -230,7 +230,7 @@ class ServerBuilder {
std::vector<std::reference_wrapper<NamedService>> services() { std::vector<std::reference_wrapper<NamedService>> services() {
std::vector<std::reference_wrapper<NamedService>> service_refs; std::vector<std::reference_wrapper<NamedService>> service_refs;
for (auto &ptr : services_) { for (auto& ptr : services_) {
service_refs.push_back(std::ref(*ptr)); service_refs.push_back(std::ref(*ptr));
} }
return service_refs; return service_refs;
@ -238,13 +238,12 @@ class ServerBuilder {
std::vector<std::reference_wrapper<ServerBuilderOption>> options() { std::vector<std::reference_wrapper<ServerBuilderOption>> options() {
std::vector<std::reference_wrapper<ServerBuilderOption>> option_refs; std::vector<std::reference_wrapper<ServerBuilderOption>> option_refs;
for (auto &ptr : options_) { for (auto& ptr : options_) {
option_refs.push_back(std::ref(*ptr)); option_refs.push_back(std::ref(*ptr));
} }
return option_refs; return option_refs;
} }
private: private:
friend class ::grpc::testing::ServerBuilderPluginTest; friend class ::grpc::testing::ServerBuilderPluginTest;

Loading…
Cancel
Save