From 31d3182a4abb871310aac81419aef31f24d459a7 Mon Sep 17 00:00:00 2001 From: q66 Date: Wed, 30 Dec 2015 15:13:07 +0100 Subject: [PATCH] fix shadow warnings --- ostd/range.hh | 4 ++-- ostd/stream.hh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ostd/range.hh b/ostd/range.hh index 2cdbee2..ed5db82 100644 --- a/ostd/range.hh +++ b/ostd/range.hh @@ -662,8 +662,8 @@ public: RangeSize size() const { return p_end - p_beg; } HalfRange - slice(RangeSize start, RangeSize p_end) const { - return HalfRange(p_beg + start, p_beg + p_end); + slice(RangeSize start, RangeSize end) const { + return HalfRange(p_beg + start, p_beg + end); } RangeReference operator[](RangeSize idx) const { diff --git a/ostd/stream.hh b/ostd/stream.hh index 6b309ef..86bbc50 100644 --- a/ostd/stream.hh +++ b/ostd/stream.hh @@ -36,7 +36,7 @@ struct StreamRange; namespace detail { template struct FormatOutRange: OutputRange, char> { - FormatOutRange(char *buf): buf(buf), idx(0) {} + FormatOutRange(char *ibuf): buf(ibuf), idx(0) {} FormatOutRange(const FormatOutRange &r): buf(r.buf), idx(r.idx) {} char *buf; Size idx;