Fix compilation error.

pull/6181/head
yang-g 9 years ago
parent e291402306
commit d8887c061c
  1. 6
      src/compiler/generator_helpers.h

@ -237,10 +237,8 @@ inline void GetComment(const grpc::protobuf::FileDescriptor *desc,
}
}
namespace {
// Prefix comment line with "// " and concatenate them into a string.
grpc::string GenerateComments(const std::vector<grpc::string> &in) {
inline grpc::string GenerateComments(const std::vector<grpc::string> &in) {
std::ostringstream oss;
for (const grpc::string &elem : in) {
if (elem.empty()) {
@ -254,8 +252,6 @@ grpc::string GenerateComments(const std::vector<grpc::string> &in) {
return oss.str();
}
} // namespace
// Get leading or trailing comments in a string. Comment lines start with "// ".
// Leading detached comments are put in in front of leading comments.
template <typename DescriptorType>

Loading…
Cancel
Save