commit | e5b0df28eb4179c1971ec143a13146a50a895e58 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Mon Mar 29 17:28:48 2021 +0000 |
committer | Steven Moreland <smoreland@google.com> | Mon Mar 29 17:49:15 2021 +0000 |
tree | 119bfbdd0cda0f024a21ace295c9f1d153f80a0a | |
parent | 70260b5a12859fa81c5745ada5a65eceb3782ad1 [diff] |
hidl_string: empty string opt always applies Before, it only applied for the default constructor. However, there are many cases where we can avoid the extra allocation. The most important is when we allocate a hidl_memory object. Here, the empty string literal is passed to hidl_string, but we don't actually need an allocation. Bug: 179720143 Test: N/A Change-Id: I307305b88e8b8c54cb2e2759b60b7015a3ac82b9