| Index: third_party/WebKit/Source/wtf/RefCountedLeakCounter.cpp
|
| diff --git a/third_party/WebKit/Source/wtf/RefCountedLeakCounter.cpp b/third_party/WebKit/Source/wtf/RefCountedLeakCounter.cpp
|
| index 96a9fb37ffe89bdc0bb59e621acc16d67a587fe1..336eec36ff0ba878187b01e2559def6eeb2de471 100644
|
| --- a/third_party/WebKit/Source/wtf/RefCountedLeakCounter.cpp
|
| +++ b/third_party/WebKit/Source/wtf/RefCountedLeakCounter.cpp
|
| @@ -29,40 +29,35 @@ namespace WTF {
|
|
|
| #if !ENABLE(ASSERT)
|
|
|
| -RefCountedLeakCounter::RefCountedLeakCounter(const char*) { }
|
| -RefCountedLeakCounter::~RefCountedLeakCounter() { }
|
| +RefCountedLeakCounter::RefCountedLeakCounter(const char*) {}
|
| +RefCountedLeakCounter::~RefCountedLeakCounter() {}
|
|
|
| -void RefCountedLeakCounter::increment() { }
|
| -void RefCountedLeakCounter::decrement() { }
|
| +void RefCountedLeakCounter::increment() {}
|
| +void RefCountedLeakCounter::decrement() {}
|
|
|
| #else
|
|
|
| #define LOG_CHANNEL_PREFIX Log
|
| -static WTFLogChannel LogRefCountedLeaks = { WTFLogChannelOn };
|
| +static WTFLogChannel LogRefCountedLeaks = {WTFLogChannelOn};
|
|
|
| RefCountedLeakCounter::RefCountedLeakCounter(const char* description)
|
| - : m_description(description)
|
| -{
|
| -}
|
| + : m_description(description) {}
|
|
|
| -RefCountedLeakCounter::~RefCountedLeakCounter()
|
| -{
|
| - if (!m_count)
|
| - return;
|
| +RefCountedLeakCounter::~RefCountedLeakCounter() {
|
| + if (!m_count)
|
| + return;
|
|
|
| - WTF_LOG(RefCountedLeaks, "LEAK: %u %s", m_count, m_description);
|
| + WTF_LOG(RefCountedLeaks, "LEAK: %u %s", m_count, m_description);
|
| }
|
|
|
| -void RefCountedLeakCounter::increment()
|
| -{
|
| - atomicIncrement(&m_count);
|
| +void RefCountedLeakCounter::increment() {
|
| + atomicIncrement(&m_count);
|
| }
|
|
|
| -void RefCountedLeakCounter::decrement()
|
| -{
|
| - atomicDecrement(&m_count);
|
| +void RefCountedLeakCounter::decrement() {
|
| + atomicDecrement(&m_count);
|
| }
|
|
|
| #endif
|
|
|
| -} // namespace WTF
|
| +} // namespace WTF
|
|
|