commit | 8050299f5b12a8994f323fa5fcfe9199c12e3acf | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Wed May 08 16:04:13 2013 -0700 |
committer | Mathias Agopian <mathias@google.com> | Wed May 08 18:13:07 2013 -0700 |
tree | 33763693e41095a2dcb78e3d4e2e7b1553d3a06b | |
parent | 002e1e58dfe19dd3e49a59c6827cbf51573941a2 [diff] |
new String8, String16 ctors to initialize empty static strings with static linkage when libutils is statically linked, the ordering of the static initializer is not guaranteed and therefore it's unsafe to use empty static strings: e.g.: static String8 sThisStaticStringIsNotSafe; instead, this new constructor can be used: static String8 sThisStaticStringIsSafe(kEmptyString); Change-Id: Ia3daf1cab1c97d021c0ee9c2b394b5e27e8d6c0d