diff options
author | Jon Skeet <jonskeet@google.com> | 2015-06-25 17:46:57 +0100 |
---|---|---|
committer | Jon Skeet <jonskeet@google.com> | 2015-06-29 09:27:54 +0100 |
commit | 8d83f8d13e48507ab3d0de345184bf8f5ccc7da9 (patch) | |
tree | 5c5334b2dc1c6e1f3081baa1c22c8aa6a38936c6 /src | |
parent | b08b6bf62e5f0398609cc95a34699df500ea110c (diff) | |
download | protobuf-8d83f8d13e48507ab3d0de345184bf8f5ccc7da9.tar.gz protobuf-8d83f8d13e48507ab3d0de345184bf8f5ccc7da9.tar.bz2 protobuf-8d83f8d13e48507ab3d0de345184bf8f5ccc7da9.zip |
Fix for doubly-nested types - issue #307.
No specific test case - if the generated code compiles, the issue is fixed :)
Diffstat (limited to 'src')
-rw-r--r-- | src/google/protobuf/compiler/csharp/csharp_helpers.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/compiler/csharp/csharp_helpers.cc b/src/google/protobuf/compiler/csharp/csharp_helpers.cc index 927fea97..156ee328 100644 --- a/src/google/protobuf/compiler/csharp/csharp_helpers.cc +++ b/src/google/protobuf/compiler/csharp/csharp_helpers.cc @@ -206,7 +206,7 @@ std::string ToCSharpName(const std::string& name, const FileDescriptor* file) { // the C# namespace. classname = name.substr(file->package().size() + 1); } - result += StringReplace(classname, ".", ".Types.", false); + result += StringReplace(classname, ".", ".Types.", true); return "global::" + result; } |