зеркало из https://github.com/mozilla/gecko-dev.git
Bug 720759 - Delete the fallible EqualStrings signature when both provided strings are linear, so that callers are required to use the faster, infallible linear-strings overload. r=Ms2ger
This commit is contained in:
Родитель
a471a1864a
Коммит
5bcf1f98f0
|
@ -188,6 +188,10 @@ namespace js {
|
|||
extern bool
|
||||
EqualStrings(JSContext *cx, JSString *str1, JSString *str2, bool *result);
|
||||
|
||||
/* Use the infallible method instead! */
|
||||
extern bool
|
||||
EqualStrings(JSContext *cx, JSLinearString *str1, JSLinearString *str2, bool *result) MOZ_DELETE;
|
||||
|
||||
/* EqualStrings is infallible on linear strings. */
|
||||
extern bool
|
||||
EqualStrings(JSLinearString *str1, JSLinearString *str2);
|
||||
|
|
Загрузка…
Ссылка в новой задаче