mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-11 07:27:27 +00:00
Misc fixes from internal integration / clang tidy.
Change-Id: Ic5e8f6a423b426abb9f8b90d39db0f85f28b94be Tested: on Linux.
This commit is contained in:
@@ -49,6 +49,7 @@ typedef grpc_generator::CommentHolder
|
||||
typedef grpc_generator::Method MethodDescriptor;
|
||||
|
||||
namespace grpc_java_generator {
|
||||
typedef std::string string;
|
||||
// Generates imports for the service
|
||||
void GenerateImports(grpc_generator::File* file,
|
||||
grpc_generator::Printer* printer, VARS& vars) {
|
||||
@@ -60,7 +61,7 @@ void GenerateImports(grpc_generator::File* file,
|
||||
printer->Print(vars, "//source: $filename$.fbs\n\n");
|
||||
printer->Print(vars, "package $Package$;\n\n");
|
||||
vars["Package"] = vars["Package"] + ".";
|
||||
if (file->additional_headers() != "") {
|
||||
if (!file->additional_headers().empty()) {
|
||||
printer->Print(file->additional_headers().c_str());
|
||||
printer->Print("\n\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user