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

Unified Diff: mojo/public/cpp/bindings/array_traits_standard.h

Issue 1978003002: Mojo C++ bindings: add detailed comments for String/Array/StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@29_wtf_vector
Patch Set: Created 4 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/array_traits_standard.h
diff --git a/mojo/public/cpp/bindings/array_traits_standard.h b/mojo/public/cpp/bindings/array_traits_standard.h
index f53fcd1f6796e2e2d8dcc228e2b7496235ee86a4..7ee4bd2661af8df41043639b4c30691c99015f04 100644
--- a/mojo/public/cpp/bindings/array_traits_standard.h
+++ b/mojo/public/cpp/bindings/array_traits_standard.h
@@ -27,8 +27,8 @@ struct ArrayTraits<Array<T>> {
return input[index];
}
- static typename Array<T>::ConstRefType& GetAt(const Array<T>& input,
- size_t index) {
+ static typename Array<T>::ConstRefType GetAt(const Array<T>& input,
+ size_t index) {
return input[index];
}

Powered by Google App Engine
This is Rietveld 408576698