Summary:
These should always have been const.
Reviewed By: mcslee
Test Plan:
Re-ran the dense protocol test.
Revert Plan: ok
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665303
13f79535-47bb-0310-9956-
ffa450edef68
if (tstruct->has_fingerprint()) {
out <<
- indent() << stat << "char* " << nspace
+ indent() << stat << "const char* " << nspace
<< "ascii_fingerprint" << comment << "= \"" <<
tstruct->get_ascii_fingerprint() << "\";" << endl <<
- indent() << stat << "uint8_t " << nspace <<
+ indent() << stat << "const uint8_t " << nspace <<
"binary_fingerprint[" << t_type::fingerprint_len << "]" << comment << "= {";
char* comma = "";
for (int i = 0; i < t_type::fingerprint_len; i++) {
}
TypeSpec(TType ttype,
- uint8_t* fingerprint,
+ const uint8_t* fingerprint,
FieldMeta* metas,
TypeSpec** specs) :
ttype(ttype)