From 6ce97e3d8d3365da4b7c9bcc280ea458449becd5 Mon Sep 17 00:00:00 2001 From: David Reiss Date: Thu, 30 Aug 2007 23:18:31 +0000 Subject: [PATCH] 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 --- compiler/cpp/src/parse/t_struct.h | 4 ++-- compiler/cpp/src/parse/t_type.h | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) 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 { -- 2.17.1