зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1485289 - Use BeginWriting() instead of GetMutableData() in LateWriteChecks. r=froydnj
MozReview-Commit-ID: G64L8b6wnO0 Differential Revision: https://phabricator.services.mozilla.com/D3963 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
acc4596637
Коммит
569510fbdc
|
@ -133,8 +133,7 @@ LateWriteObserver::Observe(IOInterposeObserver::Observation& aOb)
|
|||
|
||||
nsTAutoString<char_type> nameAux(mProfileDirectory);
|
||||
nameAux.AppendLiteral(NS_SLASH "Telemetry.LateWriteTmpXXXXXX");
|
||||
char_type* name;
|
||||
nameAux.GetMutableData(&name);
|
||||
char_type* name = nameAux.BeginWriting();
|
||||
|
||||
// We want the sha1 of the entire file, so please don't write to fd
|
||||
// directly; use sha1Stream.
|
||||
|
|
Загрузка…
Ссылка в новой задаче