commit | 23dc72fdffa25543c03671cce9029249f4e70c2f | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Wed Apr 29 14:14:27 2020 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Wed Apr 29 14:14:27 2020 +0000 |
tree | eb8abc1cfa9ba51536434423220e6c7d69a509b3 | |
parent | 442fa8e5f0e0522a7496d33c91c84329d5fe36e9 [diff] | |
parent | 65d6d414f59eebe0a8121d73d878b84f2843dda0 [diff] |
Merge "Fix unnecessary string copy" into rvc-dev
diff --git a/jni/node-inl.h b/jni/node-inl.h index c238fc8..c7d30df 100644 --- a/jni/node-inl.h +++ b/jni/node-inl.h
@@ -228,7 +228,7 @@ std::vector<std::string> matches; for (node* child : children_) { - std::string child_name = child->GetName(); + const std::string& child_name = child->GetName(); if (!strcasecmp(name_char, child_name.c_str())) { matches.push_back(child_name); }