From: Guilherme Maciel Ferreira Date: Thu, 24 Mar 2011 13:46:10 +0000 (+0100) Subject: Attributes names according to the company's coding style. X-Git-Tag: v1.0~116 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=49b2f402dd178995731c54349a0093f9a0eea5b5;p=pingcheck Attributes names according to the company's coding style. --- 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++ ); }