summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2019-07-29 18:34:32 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2019-07-29 18:34:32 +0000
commitc6b39156522bad9e546b91c047677b6ac077657e (patch)
tree731dcc6d64a4f3d6210c2dd7feaa629b28efee36
parentba119a3e30a28feff53a5b2e3f13aee4e107f2da (diff)
parent5a0187999da051506f43e4cb18a118f66b14f8ba (diff)
Merge "TracedOrdinal: Avoid string copy"
-rw-r--r--services/surfaceflinger/TracedOrdinal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/TracedOrdinal.h b/services/surfaceflinger/TracedOrdinal.h
index fb0f02ee1f..c145a396af 100644
--- a/services/surfaceflinger/TracedOrdinal.h
+++ b/services/surfaceflinger/TracedOrdinal.h
@@ -27,7 +27,7 @@ public:
"Type is not supported. Please test it with systrace before adding "
"it to the list.");
- TracedOrdinal(std::string name, T initialValue)
+ TracedOrdinal(const std::string& name, T initialValue)
: mName(name),
mNameNegative(android::base::StringPrintf("%sNegative", name.c_str())),
mHasGoneNegative(std::signbit(initialValue)),