From: hno <> Date: Mon, 9 May 2005 05:28:06 +0000 (+0000) Subject: const correctness X-Git-Tag: SQUID_3_0_PRE4~770 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4d8ff4b58526355adcd359ffc0a50f6e281c631;p=thirdparty%2Fsquid.git const correctness --- diff --git a/include/Range.h b/include/Range.h index 1fcafb2dfe..6c8a031a4c 100644 --- a/include/Range.h +++ b/include/Range.h @@ -1,6 +1,6 @@ /* - * $Id: Range.h,v 1.5 2003/09/22 08:50:51 robertc Exp $ + * $Id: Range.h,v 1.6 2005/05/08 23:28:06 hno Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -48,7 +48,7 @@ public: Range (C start_, C end_); C start; C end; - Range intersection (Range const &); + Range intersection (Range const &) const; size_t size() const; }; @@ -67,7 +67,7 @@ Range::Range (C start_, C end_) : start(start_), end(end_){} template Range -Range::intersection (Range const &rhs) +Range::intersection (Range const &rhs) const { Range result (XMAX(start, rhs.start), XMIN(end, rhs.end)); return result;