From 49b2f402dd178995731c54349a0093f9a0eea5b5 Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Thu, 24 Mar 2011 14:46:10 +0100 Subject: [PATCH] Attributes names according to the company's coding style. --- src/icmp/checksumcalculator.h | 21 ++++++++++++--------- 1 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/icmp/checksumcalculator.h b/src/icmp/checksumcalculator.h index 9b5b657..33f2158 100644 --- a/src/icmp/checksumcalculator.h +++ b/src/icmp/checksumcalculator.h @@ -7,6 +7,9 @@ // ChecksumCalculator //----------------------------------------------------------------------------- +/** + * @brief Class that provides checksum calculation. + */ template class ChecksumCalculator { @@ -24,8 +27,8 @@ public: ); private: - Iterator body_begin; - Iterator body_end; + Iterator BodyBegin; + Iterator BodyEnd; }; @@ -34,11 +37,11 @@ template Iterator body_begin, Iterator body_end ) : - body_begin(), - body_end() + BodyBegin(), + BodyEnd() { - this->body_begin = body_begin; - this->body_end = body_end; + this->BodyBegin = body_begin; + this->BodyEnd = body_end; } template @@ -51,11 +54,11 @@ template { uint32_t sum = (type << 8) + code + identifier + sequence_number; - Iterator body_iter = body_begin; - while ( body_iter != body_end ) + Iterator body_iter = BodyBegin; + while ( body_iter != BodyEnd ) { sum += (static_cast ( *body_iter++ ) << 8); - if ( body_iter != body_end ) + if ( body_iter != BodyEnd ) sum += static_cast ( *body_iter++ ); } -- 1.7.1