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

Commit 687d6f24 authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge "Create an empty String8 to cause the first allocation" am: 896cdca9...

Merge "Create an empty String8 to cause the first allocation" am: 896cdca9 am: 908b95cf am: 6972d3c2

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2186419



Change-Id: Ifac18f6535b33937c18f12526bf6b40b00350003
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 0ec54fde 6972d3c2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -27,6 +27,8 @@
#include <functional>
#include <vector>

static android::String8 gEmpty(""); // make sure first allocation from optimization runs

struct DestructionAction {
    DestructionAction(std::function<void()> f) : mF(std::move(f)) {}
    ~DestructionAction() { mF(); };