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

Unified Diff: mojo/public/cpp/bindings/lib/fixed_buffer.cc

Issue 294833002: Mojo: more idiomatic C++ bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix windows bustage Created 6 years, 7 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
Index: mojo/public/cpp/bindings/lib/fixed_buffer.cc
diff --git a/mojo/public/cpp/bindings/lib/fixed_buffer.cc b/mojo/public/cpp/bindings/lib/fixed_buffer.cc
index 53967eb43d91e50dd3a1e3faafa154fca6913311..5226231725c53392bfe20459783299903200f821 100644
--- a/mojo/public/cpp/bindings/lib/fixed_buffer.cc
+++ b/mojo/public/cpp/bindings/lib/fixed_buffer.cc
@@ -27,9 +27,7 @@ FixedBuffer::~FixedBuffer() {
free(ptr_);
}
-void* FixedBuffer::Allocate(size_t delta, Destructor dtor) {
- assert(!dtor);
-
+void* FixedBuffer::Allocate(size_t delta) {
delta = internal::Align(delta);
if (delta == 0 || delta > size_ - cursor_) {

Powered by Google App Engine
This is Rietveld 408576698