From: David Reiss Date: Thu, 30 Aug 2007 23:18:31 +0000 (+0000) Subject: Thrift: Forgot to commit these fixes. X-Git-Tag: 0.2.0~1234 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=6ce97e3d8d3365da4b7c9bcc280ea458449becd5;p=common%2Fthrift.git Thrift: Forgot to commit these fixes. Summary: Small git error. These changes should have gone in my last commit. Reviewed By: mcslee Test Plan: Same as the last one. Revert Plan: ok git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665238 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/compiler/cpp/src/parse/t_struct.h b/compiler/cpp/src/parse/t_struct.h index d296473f..05cd216c 100644 --- a/compiler/cpp/src/parse/t_struct.h +++ b/compiler/cpp/src/parse/t_struct.h @@ -77,7 +77,7 @@ class t_struct : public t_type { std::string rv = "{"; std::vector::const_iterator m_iter; for (m_iter = members_.begin(); m_iter != members_.end(); ++m_iter) { - rv += (**m_iter).get_fingerprint_material(); + rv += (*m_iter)->get_fingerprint_material(); rv += ";"; } rv += "}"; @@ -88,7 +88,7 @@ class t_struct : public t_type { t_type::generate_fingerprint(); std::vector::const_iterator m_iter; for (m_iter = members_.begin(); m_iter != members_.end(); ++m_iter) { - (**m_iter).get_type()->generate_fingerprint(); + (*m_iter)->get_type()->generate_fingerprint(); } } diff --git a/compiler/cpp/src/parse/t_type.h b/compiler/cpp/src/parse/t_type.h index 0a6fbbc0..61975d5f 100644 --- a/compiler/cpp/src/parse/t_type.h +++ b/compiler/cpp/src/parse/t_type.h @@ -72,9 +72,6 @@ class t_type : public t_doc { MD5Init(&ctx); MD5Update(&ctx, (unsigned char*)(material.data()), material.size()); MD5Final(fingerprint_, &ctx); - //std::cout << get_name() << std::endl; - //std::cout << material << std::endl; - //std::cout << get_ascii_fingerprint() << std::endl << std::endl; } bool has_fingerprint() const {