summaryrefslogtreecommitdiffstats
path: root/parser/html/nsHtml5Portability.cpp
diff options
context:
space:
mode:
authorMoonchild <git-repo@palemoon.org>2019-05-25 15:53:41 +0000
committerGitHub <noreply@github.com>2019-05-25 15:53:41 +0000
commit1f239f8179bce5df201ec486519efbda9d50861b (patch)
tree2772b5e52ff616f658d56a3f18247bfc700e5354 /parser/html/nsHtml5Portability.cpp
parentc4e345b6d499393132c0cd57d10c98a7a4db370b (diff)
parentbf1e5431f05532e457306c0944b3812ab6ea39f2 (diff)
downloadUXP-1f239f8179bce5df201ec486519efbda9d50861b.tar
UXP-1f239f8179bce5df201ec486519efbda9d50861b.tar.gz
UXP-1f239f8179bce5df201ec486519efbda9d50861b.tar.lz
UXP-1f239f8179bce5df201ec486519efbda9d50861b.tar.xz
UXP-1f239f8179bce5df201ec486519efbda9d50861b.zip
Merge pull request #1121 from win7-7/nsHtml5PortabilitylocalEqualsBuffer-pr
Use memcmp in nsHtml5Portability::localEqualsBuffer
Diffstat (limited to 'parser/html/nsHtml5Portability.cpp')
-rw-r--r--parser/html/nsHtml5Portability.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/html/nsHtml5Portability.cpp b/parser/html/nsHtml5Portability.cpp
index 36c7e758a..0a7c6f845 100644
--- a/parser/html/nsHtml5Portability.cpp
+++ b/parser/html/nsHtml5Portability.cpp
@@ -91,7 +91,7 @@ nsHtml5Portability::releaseString(nsString* str)
bool
nsHtml5Portability::localEqualsBuffer(nsIAtom* local, char16_t* buf, int32_t offset, int32_t length)
{
- return local->Equals(nsDependentSubstring(buf + offset, buf + offset + length));
+ return local->Equals(buf + offset, length);
}
bool