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

Unified Diff: device/serial/buffer.cc

Issue 1471043004: Convert various vector_as_array calls to vector::data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
Index: device/serial/buffer.cc
diff --git a/device/serial/buffer.cc b/device/serial/buffer.cc
index b5bf8883b970b4b9c5adf59ffbc103ce9fd78e28..2475e0161b258d846d1c10624e5e444f8246013e 100644
--- a/device/serial/buffer.cc
+++ b/device/serial/buffer.cc
@@ -3,7 +3,6 @@
// found in the LICENSE file.
#include "base/numerics/safe_conversions.h"
-#include "base/stl_util.h"
#include "device/serial/buffer.h"
#include "net/base/io_buffer.h"
@@ -23,7 +22,7 @@ SendBuffer::SendBuffer(
SendBuffer::~SendBuffer() {}
const char* SendBuffer::GetData() {
- return vector_as_array(&data_);
+ return data_.data();
}
uint32_t SendBuffer::GetSize() {

Powered by Google App Engine
This is Rietveld 408576698