From: Kefu Chai Date: Tue, 24 Dec 2019 07:36:18 +0000 (+0800) Subject: include/interval_set: use interval_set when appropriate X-Git-Tag: v15.1.0~351^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5ddcba1fd5cc653bc9762324107a8f32626a37b4;p=ceph.git include/interval_set: use interval_set when appropriate it's an alias of `interval_set` under some circumstances Signed-off-by: Kefu Chai --- diff --git a/src/include/interval_set.h b/src/include/interval_set.h index 92d90cb5aa09..f2f79f7c07af 100644 --- a/src/include/interval_set.h +++ b/src/include/interval_set.h @@ -99,11 +99,11 @@ class interval_set { return prev; } - friend class interval_set::const_iterator; + friend class interval_set::const_iterator; protected: typename Map::iterator _iter; - friend class interval_set; + friend class interval_set; }; class const_iterator : public std::iterator @@ -502,7 +502,7 @@ class interval_set { } } - void swap(interval_set& other) { + void swap(interval_set& other) { m.swap(other.m); std::swap(_size, other._size); }