diff --git a/src/Generator.cc b/src/Generator.cc index ffac7bff..afa3b0a8 100644 --- a/src/Generator.cc +++ b/src/Generator.cc @@ -149,7 +149,7 @@ bool Generator::Generate(const FileDescriptor *_file, auto ns = getNamespaces(_file->package()); - for (const auto name : ns) + for (const auto &name : ns) printer.PrintRaw("namespace " + name + " {\n"); for (auto i = 0; i < _file->message_type_count(); ++i)