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

Unified Diff: third_party/WebKit/Source/wtf/ArrayPiece.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/ArrayPiece.h ('k') | third_party/WebKit/Source/wtf/Assertions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/ArrayPiece.cpp
diff --git a/third_party/WebKit/Source/wtf/ArrayPiece.cpp b/third_party/WebKit/Source/wtf/ArrayPiece.cpp
index 8dafab512d2022d1d120dbc607dc40e03710d11a..17b00aa65be9fd522ab723f4e628ad8d041a8b83 100644
--- a/third_party/WebKit/Source/wtf/ArrayPiece.cpp
+++ b/third_party/WebKit/Source/wtf/ArrayPiece.cpp
@@ -10,68 +10,58 @@
namespace WTF {
-ArrayPiece::ArrayPiece()
-{
- initNull();
+ArrayPiece::ArrayPiece() {
+ initNull();
}
-ArrayPiece::ArrayPiece(void* data, unsigned byteLength)
-{
- initWithData(data, byteLength);
+ArrayPiece::ArrayPiece(void* data, unsigned byteLength) {
+ initWithData(data, byteLength);
}
-ArrayPiece::ArrayPiece(ArrayBuffer* buffer)
-{
- if (buffer) {
- initWithData(buffer->data(), buffer->byteLength());
- } else {
- initNull();
- }
+ArrayPiece::ArrayPiece(ArrayBuffer* buffer) {
+ if (buffer) {
+ initWithData(buffer->data(), buffer->byteLength());
+ } else {
+ initNull();
+ }
}
-ArrayPiece::ArrayPiece(ArrayBufferView* buffer)
-{
- if (buffer) {
- initWithData(buffer->baseAddress(), buffer->byteLength());
- } else {
- initNull();
- }
+ArrayPiece::ArrayPiece(ArrayBufferView* buffer) {
+ if (buffer) {
+ initWithData(buffer->baseAddress(), buffer->byteLength());
+ } else {
+ initNull();
+ }
}
-bool ArrayPiece::isNull() const
-{
- return m_isNull;
+bool ArrayPiece::isNull() const {
+ return m_isNull;
}
-void* ArrayPiece::data() const
-{
- ASSERT(!isNull());
- return m_data;
+void* ArrayPiece::data() const {
+ ASSERT(!isNull());
+ return m_data;
}
-unsigned char* ArrayPiece::bytes() const
-{
- return static_cast<unsigned char*>(data());
+unsigned char* ArrayPiece::bytes() const {
+ return static_cast<unsigned char*>(data());
}
-unsigned ArrayPiece::byteLength() const
-{
- ASSERT(!isNull());
- return m_byteLength;
+unsigned ArrayPiece::byteLength() const {
+ ASSERT(!isNull());
+ return m_byteLength;
}
-void ArrayPiece::initWithData(void* data, unsigned byteLength)
-{
- m_byteLength = byteLength;
- m_data = data;
- m_isNull = false;
+void ArrayPiece::initWithData(void* data, unsigned byteLength) {
+ m_byteLength = byteLength;
+ m_data = data;
+ m_isNull = false;
}
-void ArrayPiece::initNull()
-{
- m_byteLength = 0;
- m_data = 0;
- m_isNull = true;
+void ArrayPiece::initNull() {
+ m_byteLength = 0;
+ m_data = 0;
+ m_isNull = true;
}
-} // namespace WTF
+} // namespace WTF
« no previous file with comments | « third_party/WebKit/Source/wtf/ArrayPiece.h ('k') | third_party/WebKit/Source/wtf/Assertions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698