~ubuntu-branches/ubuntu/trusty/protobuf/trusty-proposed

« back to all changes in this revision

Viewing changes to src/google/protobuf/compiler/cpp/cpp_primitive_field.cc

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2011-05-31 14:41:47 UTC
  • mfrom: (2.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20110531144147-s41g5fozgvyo462l
Tags: 2.4.0a-2ubuntu1
* Merge with Debian; remaining changes:
  - Fix linking with -lpthread.

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
    "  return $name$_;\n"
126
126
    "}\n"
127
127
    "inline void $classname$::set_$name$($type$ value) {\n"
128
 
    "  _set_bit($index$);\n"
 
128
    "  set_has_$name$();\n"
129
129
    "  $name$_ = value;\n"
130
130
    "}\n");
131
131
}
156
156
    "DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<\n"
157
157
    "         $type$, $wire_format_field_type$>(\n"
158
158
    "       input, &$name$_)));\n"
159
 
    "_set_bit($index$);\n");
 
159
    "set_has_$name$();\n");
160
160
}
161
161
 
162
162
void PrimitiveFieldGenerator::