commit | 4485d0d966d062d1b45b635e2447a2d2f96c3f38 | [log] [tgz] |
---|---|---|
author | Mathias Agopian <mathias@google.com> | Wed May 08 16:04:13 2013 -0700 |
committer | Alex Ray <aray@google.com> | Tue Jul 30 13:57:01 2013 -0700 |
tree | 89a0c95a7a27261e626dbedfd3fcacff01e41b20 | |
parent | 9eb2a3b1c0cc1ff3082a9283e24c8babc112f56b [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