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

Unified Diff: Source/wtf/FastMalloc.h

Issue 20300002: Fix trailing whitespace in .cpp, .h, and .idl files (ex. Source/core) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 | « Source/wtf/EnumClass.h ('k') | Source/wtf/FastMalloc.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/FastMalloc.h
diff --git a/Source/wtf/FastMalloc.h b/Source/wtf/FastMalloc.h
index 7bdeebe8cf68c0e1c767892fe4652759b4cfa01b..c03e05e5e91753595160d81ff8adceeeed27ae2d 100644
--- a/Source/wtf/FastMalloc.h
+++ b/Source/wtf/FastMalloc.h
@@ -51,15 +51,15 @@ namespace WTF {
~TryMallocReturnValue() { ASSERT(!m_data); }
template <typename T> bool getValue(T& data) WARN_UNUSED_RETURN;
template <typename T> operator PossiblyNull<T>()
- {
- T value;
- getValue(value);
+ {
+ T value;
+ getValue(value);
return PossiblyNull<T>(value);
- }
+ }
private:
mutable void* m_data;
};
-
+
template <typename T> bool TryMallocReturnValue::getValue(T& data)
{
union u { void* data; T target; } res;
@@ -77,13 +77,13 @@ namespace WTF {
WTF_EXPORT void fastFree(void*);
-#ifndef NDEBUG
+#ifndef NDEBUG
WTF_EXPORT void fastMallocForbid();
WTF_EXPORT void fastMallocAllow();
#endif
WTF_EXPORT void releaseFastMallocFreeMemory();
-
+
struct FastMallocStatistics {
size_t reservedVMBytes;
size_t committedVMBytes;
@@ -138,7 +138,7 @@ namespace WTF {
// is implemented.
namespace Internal {
-
+
// Handle a detected alloc/free mismatch. By default this calls CRASH().
void fastMallocMatchFailed(void* p);
@@ -152,7 +152,7 @@ namespace WTF {
ValidationHeader* header = fastMallocValidationHeader(p);
if (header->m_prefix != static_cast<unsigned>(ValidationPrefix))
fastMallocMatchFailed(p);
-
+
return reinterpret_cast<ValidationTag*>(static_cast<char*>(p) + header->m_size);
}
@@ -184,7 +184,7 @@ namespace WTF {
{
if (!p)
return;
-
+
Internal::ValidationHeader* header = Internal::fastMallocValidationHeader(p);
if (header->m_prefix != static_cast<unsigned>(Internal::ValidationPrefix))
Internal::fastMallocMatchFailed(p);
@@ -199,11 +199,11 @@ namespace WTF {
{
if (!p)
return;
-
+
Internal::ValidationHeader* header = Internal::fastMallocValidationHeader(p);
if (header->m_prefix != static_cast<unsigned>(Internal::ValidationPrefix))
Internal::fastMallocMatchFailed(p);
-
+
if (*Internal::fastMallocValidationSuffix(p) != Internal::ValidationSuffix)
Internal::fastMallocMatchFailed(p);
}
@@ -234,7 +234,7 @@ using WTF::tryFastMalloc;
using WTF::tryFastRealloc;
using WTF::tryFastZeroedMalloc;
-#ifndef NDEBUG
+#ifndef NDEBUG
using WTF::fastMallocForbid;
using WTF::fastMallocAllow;
#endif
« no previous file with comments | « Source/wtf/EnumClass.h ('k') | Source/wtf/FastMalloc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698