aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/compiler/csharp/csharp_helpers.cc
diff options
context:
space:
mode:
authorJon Skeet <jonskeet@google.com>2015-06-25 17:46:57 +0100
committerJon Skeet <jonskeet@google.com>2015-06-29 09:27:54 +0100
commit8d83f8d13e48507ab3d0de345184bf8f5ccc7da9 (patch)
tree5c5334b2dc1c6e1f3081baa1c22c8aa6a38936c6 /src/google/protobuf/compiler/csharp/csharp_helpers.cc
parentb08b6bf62e5f0398609cc95a34699df500ea110c (diff)
downloadprotobuf-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/google/protobuf/compiler/csharp/csharp_helpers.cc')
-rw-r--r--src/google/protobuf/compiler/csharp/csharp_helpers.cc2
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;
}