diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:39:47 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:40:08 +0900 |
| commit | b1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch) | |
| tree | 9ce465b42bf09372118335c7c619bb2b41869eaf /src/MetalinkHttpEntry.cc | |
| parent | 4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff) | |
make clang-format using clang-format-3.6
Diffstat (limited to 'src/MetalinkHttpEntry.cc')
| -rw-r--r-- | src/MetalinkHttpEntry.cc | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/MetalinkHttpEntry.cc b/src/MetalinkHttpEntry.cc index f1bb04ff..c2494e96 100644 --- a/src/MetalinkHttpEntry.cc +++ b/src/MetalinkHttpEntry.cc @@ -36,17 +36,14 @@ namespace aria2 { -MetalinkHttpEntry::MetalinkHttpEntry() - : pri(999999), - pref(false) -{} +MetalinkHttpEntry::MetalinkHttpEntry() : pri(999999), pref(false) {} MetalinkHttpEntry::~MetalinkHttpEntry() {} void MetalinkHttpEntry::swap(MetalinkHttpEntry& other) { using std::swap; - if(this != &other) { + if (this != &other) { swap(uri, other.uri); swap(pri, other.pri); swap(pref, other.pref); @@ -56,16 +53,14 @@ void MetalinkHttpEntry::swap(MetalinkHttpEntry& other) bool MetalinkHttpEntry::operator<(const MetalinkHttpEntry& rhs) const { - if(pref^rhs.pref) { + if (pref ^ rhs.pref) { return pref; - } else { + } + else { return pri < rhs.pri; } } -void swap(MetalinkHttpEntry& a, MetalinkHttpEntry& b) -{ - a.swap(b); -} +void swap(MetalinkHttpEntry& a, MetalinkHttpEntry& b) { a.swap(b); } } // namespace aria2 |
