| Index: third_party/WebKit/Source/wtf/BitArray.h
|
| diff --git a/third_party/WebKit/Source/wtf/BitArray.h b/third_party/WebKit/Source/wtf/BitArray.h
|
| index 2a39c71f1caa483df3ff1a5be40645b7d0b4a720..c597934e2d4e3c3ebb0f0c60a04933426f68f76b 100644
|
| --- a/third_party/WebKit/Source/wtf/BitArray.h
|
| +++ b/third_party/WebKit/Source/wtf/BitArray.h
|
| @@ -31,38 +31,34 @@
|
|
|
| namespace WTF {
|
|
|
| -template<unsigned arraySize>
|
| +template <unsigned arraySize>
|
| class BitArray {
|
| -public:
|
| - BitArray(bool value = false)
|
| - {
|
| - memset(m_data, value ? 0xFF : 0, sizeof(m_data));
|
| - }
|
| + public:
|
| + BitArray(bool value = false) {
|
| + memset(m_data, value ? 0xFF : 0, sizeof(m_data));
|
| + }
|
|
|
| - void set(unsigned index)
|
| - {
|
| - ASSERT_WITH_SECURITY_IMPLICATION(index < arraySize);
|
| - m_data[index / 8] |= 1 << (index & 7);
|
| - }
|
| + void set(unsigned index) {
|
| + ASSERT_WITH_SECURITY_IMPLICATION(index < arraySize);
|
| + m_data[index / 8] |= 1 << (index & 7);
|
| + }
|
|
|
| - void clear(unsigned index)
|
| - {
|
| - ASSERT_WITH_SECURITY_IMPLICATION(index < arraySize);
|
| - m_data[index / 8] &= ~(1 << (index & 7));
|
| - }
|
| + void clear(unsigned index) {
|
| + ASSERT_WITH_SECURITY_IMPLICATION(index < arraySize);
|
| + m_data[index / 8] &= ~(1 << (index & 7));
|
| + }
|
|
|
| - bool get(unsigned index) const
|
| - {
|
| - ASSERT_WITH_SECURITY_IMPLICATION(index < arraySize);
|
| - return !!(m_data[index / 8] & (1 << (index & 7)));
|
| - }
|
| + bool get(unsigned index) const {
|
| + ASSERT_WITH_SECURITY_IMPLICATION(index < arraySize);
|
| + return !!(m_data[index / 8] & (1 << (index & 7)));
|
| + }
|
|
|
| -private:
|
| - unsigned char m_data[arraySize / 8 + 1];
|
| + private:
|
| + unsigned char m_data[arraySize / 8 + 1];
|
| };
|
|
|
| -} // namespace WTF
|
| +} // namespace WTF
|
|
|
| using WTF::BitArray;
|
|
|
| -#endif // BitArray_h
|
| +#endif // BitArray_h
|
|
|