Author: dreiss
Date: Wed Oct 22 15:07:03 2008
New Revision: 707213
URL: http://svn.apache.org/viewvc?rev=707213&view=rev
Log:
Make a pointer const to fix a warning
Modified:
incubator/thrift/trunk/compiler/cpp/src/generate/t_cpp_generator.cc
Modified: incubator/thrift/trunk/compiler/cpp/src/generate/t_cpp_generator.cc
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/compiler/cpp/src/generate/t_cpp_generator.cc?rev=707213&r1=707212&r2=707213&view=diff
==============================================================================
--- incubator/thrift/trunk/compiler/cpp/src/generate/t_cpp_generator.cc
(original)
+++ incubator/thrift/trunk/compiler/cpp/src/generate/t_cpp_generator.cc Wed Oct
22 15:07:03 2008
@@ -823,7 +823,7 @@
tstruct->get_ascii_fingerprint() << "\";" << endl <<
indent() << stat << "const uint8_t " << nspace <<
"binary_fingerprint[" << t_type::fingerprint_len << "]" << comment <<
"= {";
- char* comma = "";
+ const char* comma = "";
for (int i = 0; i < t_type::fingerprint_len; i++) {
out << comma << "0x" <<
t_struct::byte_to_hex(tstruct->get_binary_fingerprint()[i]);
comma = ",";