Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6b39156 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "TracedOrdinal: Avoid string copy"

parents ba119a3e 5a018799
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)),