Remove callers of mojo::Array<size_t> constructor in favor of ::New
This creates an ambiguity with Array(0) if we try to add a
mojo::Array(std::nullptr_t) constructor. This just removes callers, it
doesn't remove the constructor itself. I'll remove the constructor after
verifying downstream consumers won't be broken.
R=viettrungluu@chromium.org
Review URL: https://codereview.chromium.org/1397133002 .
diff --git a/examples/moterm_example_app/moterm_example_app.cc b/examples/moterm_example_app/moterm_example_app.cc
index 94ccac1..e52ea0f 100644
--- a/examples/moterm_example_app/moterm_example_app.cc
+++ b/examples/moterm_example_app/moterm_example_app.cc
@@ -36,7 +36,7 @@
// Kind of like |fputs()| (doesn't wait for result).
void Fputs(mojo::files::File* file, const char* s) {
size_t length = strlen(s);
- mojo::Array<uint8_t> a(length);
+ auto a = mojo::Array<uint8_t>::New(length);
memcpy(&a[0], s, length);
file->Write(a.Pass(), 0, mojo::files::Whence::FROM_CURRENT,