Make a pointer const to fix a warning
authorDavid Reiss <dreiss@apache.org>
Wed, 22 Oct 2008 22:07:03 +0000 (22:07 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 22 Oct 2008 22:07:03 +0000 (22:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@707213 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/src/generate/t_cpp_generator.cc

index d85f06f..550e519 100644 (file)
@@ -823,7 +823,7 @@ void t_cpp_generator::generate_struct_fingerprint(ofstream& out,
         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 = ",";