Permalink
Browse files

Getter and setter functions changed from using FieldDescriptor->camel…

…case_name() to FieldDescriptor->name()
  • Loading branch information...
Adam Magaluk
Adam Magaluk committed Nov 18, 2012
1 parent 7bf19fd commit d45c173104202a66afe777db56c6cc4a7c95325f
Showing with 2 additions and 2 deletions.
  1. +2 −2 protobuf_for_node.cc
View
@@ -143,11 +143,11 @@ namespace protobuf_for_node {
from <<
"var x = arr[" << i << "]; "
"if(x !== undefined) this['" <<
- descriptor->field(i)->camelcase_name() <<
+ descriptor->field(i)->name() <<
"'] = x; ";
if (i > 0) to << ", ";
- to << "this['" << descriptor->field(i)->camelcase_name() << "']";
+ to << "this['" << descriptor->field(i)->name() << "']";
}
from << " }})";

0 comments on commit d45c173

Please sign in to comment.