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

Unified Diff: third_party/WebKit/Source/wtf/RefCountedLeakCounter.cpp

Issue 1611343002: wtf reformat test Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pydent Created 4 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/wtf/RefCountedLeakCounter.h ('k') | third_party/WebKit/Source/wtf/RefPtr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/WebKit/Source/wtf/RefCountedLeakCounter.h ('k') | third_party/WebKit/Source/wtf/RefPtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698