Bug 1324430 - Implement nsTSubstring_CharT::Assign with length for a better string buffer sharing, r=froydnj

This commit is contained in:
Andrea Marchesini
2016-12-23 17:22:21 +01:00
parent 3a0bc35140
commit 3eefb79c84
3 changed files with 39 additions and 6 deletions

View File

@@ -65,7 +65,7 @@ public:
{
MutexAutoLock lock(mMutex);
MOZ_ASSERT(aLength <= mData.Length());
return aString.Assign(mData.BeginReading(), aLength, mozilla::fallible);
return aString.Assign(mData, aLength, mozilla::fallible);
}
void