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

Skip to content
Commit 934ef60b authored by Xuan Xing's avatar Xuan Xing Committed by Chris Manton
Browse files

Explicitly return a const reference in mocks

Avoid returning a copy of the data from the mocks by setting an explicit return type before returning the static variable.  Otherwise the address sanitizer will fail referencing a non-static member.

Bug: 187825293
Test: Manually build.
Change-Id: I71282f17df35b09738948398efe3caeaadf63533
parent c63f8cec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment