Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(720)

Unified Diff: net/quic/congestion_control/quic_max_sized_map.h

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/quic/congestion_control/quic_max_sized_map.h
diff --git a/net/quic/congestion_control/quic_max_sized_map.h b/net/quic/congestion_control/quic_max_sized_map.h
index a4ed7769d61015fd7a607543226fdb6ac2245278..150ab56f65956f2374a05c48aa88b849801b02e3 100644
--- a/net/quic/congestion_control/quic_max_sized_map.h
+++ b/net/quic/congestion_control/quic_max_sized_map.h
@@ -23,16 +23,11 @@ class QuicMaxSizedMap {
typedef typename std::multimap<Key, Value>::const_iterator ConstIterator;
explicit QuicMaxSizedMap(size_t max_numer_of_items)
- : max_numer_of_items_(max_numer_of_items) {
- }
+ : max_numer_of_items_(max_numer_of_items) {}
- size_t MaxSize() const {
- return max_numer_of_items_;
- }
+ size_t MaxSize() const { return max_numer_of_items_; }
- size_t Size() const {
- return table_.size();
- }
+ size_t Size() const { return table_.size(); }
void Insert(const Key& k, const Value& value) {
if (Size() == MaxSize()) {
@@ -50,17 +45,11 @@ class QuicMaxSizedMap {
}
// STL style const_iterator support.
- ConstIterator Find(const Key& k) const {
- return table_.find(k);
- }
+ ConstIterator Find(const Key& k) const { return table_.find(k); }
- ConstIterator Begin() const {
- return ConstIterator(table_.begin());
- }
+ ConstIterator Begin() const { return ConstIterator(table_.begin()); }
- ConstIterator End() const {
- return ConstIterator(table_.end());
- }
+ ConstIterator End() const { return ConstIterator(table_.end()); }
private:
typedef typename std::multimap<Key, Value>::iterator TableIterator;

Powered by Google App Engine
This is Rietveld 408576698