aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJon Skeet <skeet@pobox.com>2015-06-29 20:43:26 +0100
committerJon Skeet <skeet@pobox.com>2015-06-29 20:43:26 +0100
commit241e17ba78b71a7ecccb289914ecaeab203b2373 (patch)
tree5c5334b2dc1c6e1f3081baa1c22c8aa6a38936c6 /src
parentb08b6bf62e5f0398609cc95a34699df500ea110c (diff)
parent8d83f8d13e48507ab3d0de345184bf8f5ccc7da9 (diff)
downloadprotobuf-241e17ba78b71a7ecccb289914ecaeab203b2373.tar.gz
protobuf-241e17ba78b71a7ecccb289914ecaeab203b2373.tar.bz2
protobuf-241e17ba78b71a7ecccb289914ecaeab203b2373.zip
Merge pull request #550 from jskeet/issue307
Fix for doubly-nested types - issue #307.
Diffstat (limited to 'src')
-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;
}