Commit 569510fb authored by Henri Sivonen's avatar Henri Sivonen
Browse files

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
parent acc45966
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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.