Index: net/disk_cache/blockfile/bitmap.cc |
diff --git a/net/disk_cache/blockfile/bitmap.cc b/net/disk_cache/blockfile/bitmap.cc |
index cfbf8460d84ff02ec9334530046c45a5fa956432..5dbc0cf2261a1433c035384327df01fef43b1994 100644 |
--- a/net/disk_cache/blockfile/bitmap.cc |
+++ b/net/disk_cache/blockfile/bitmap.cc |
@@ -62,7 +62,7 @@ Bitmap::Bitmap(uint32* map, int num_bits, int num_words) |
Bitmap::~Bitmap() { |
if (alloc_) |
- delete [] map_; |
+ delete[] map_; |
} |
void Bitmap::Resize(int num_bits, bool clear_bits) { |
@@ -75,8 +75,8 @@ void Bitmap::Resize(int num_bits, bool clear_bits) { |
uint32* new_map = new uint32[array_size_]; |
// Always clear the unused bits in the last word. |
new_map[array_size_ - 1] = 0; |
- memcpy(new_map, map_, |
- sizeof(*map_) * std::min(array_size_, old_array_size)); |
+ memcpy( |
+ new_map, map_, sizeof(*map_) * std::min(array_size_, old_array_size)); |
if (alloc_) |
delete[] map_; // No need to check for NULL. |
map_ = new_map; |
@@ -103,7 +103,7 @@ void Bitmap::Set(int index, bool value) { |
bool Bitmap::Get(int index) const { |
DCHECK_LT(index, num_bits_); |
DCHECK_GE(index, 0); |
- const int i = index & (kIntBits-1); |
+ const int i = index & (kIntBits - 1); |
const int j = index / kIntBits; |
return ((map_[j] & (1 << i)) != 0); |
} |
@@ -151,7 +151,8 @@ void Bitmap::SetRange(int begin, int end, bool value) { |
SetWordBits(end, end_offset, value); |
// Set all the words in the middle. |
- memset(map_ + (begin / kIntBits), (value ? 0xFF : 0x00), |
+ memset(map_ + (begin / kIntBits), |
+ (value ? 0xFF : 0x00), |
((end / kIntBits) - (begin / kIntBits)) * sizeof(*map_)); |
} |