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

Unified Diff: mojo/public/cpp/bindings/tests/versioning_test_service.cc

Issue 1459033002: Replace (most) occurrences of mojo::Array<T>() with nullptr. (Closed) Base URL: https://github.com/domokit/mojo.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
« no previous file with comments | « apps/moterm/moterm_driver.cc ('k') | mojo/services/files/cpp/lib/input_stream_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/tests/versioning_test_service.cc
diff --git a/mojo/public/cpp/bindings/tests/versioning_test_service.cc b/mojo/public/cpp/bindings/tests/versioning_test_service.cc
index ba76da2d82e57b63b65af240a8ee9e19b375043a..0896b8c42b1ef4ebd6d6c44d11a855defbe20258 100644
--- a/mojo/public/cpp/bindings/tests/versioning_test_service.cc
+++ b/mojo/public/cpp/bindings/tests/versioning_test_service.cc
@@ -67,12 +67,12 @@ class HumanResourceDatabaseImpl : public HumanResourceDatabase {
bool retrieve_finger_print,
const QueryEmployeeCallback& callback) override {
if (employees_.find(id) == employees_.end()) {
- callback.Run(nullptr, Array<uint8_t>());
+ callback.Run(nullptr, nullptr);
return;
}
- callback.Run(employees_[id]->employee.Clone(),
- retrieve_finger_print ? employees_[id]->finger_print.Clone()
- : Array<uint8_t>());
+ callback.Run(
+ employees_[id]->employee.Clone(),
+ retrieve_finger_print ? employees_[id]->finger_print.Clone() : nullptr);
}
void AttachFingerPrint(uint64_t id,
« no previous file with comments | « apps/moterm/moterm_driver.cc ('k') | mojo/services/files/cpp/lib/input_stream_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698