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

Commit 91e93d7d authored by Devin Moore's avatar Devin Moore Committed by Automerger Merge Worker
Browse files

Merge "Create an empty String8 to cause the first allocation" into tm-dev am: f325d393

parents d7d23869 f325d393
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -24,6 +24,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(); };