Bug 1523969 part 18 - Move method definition inline comments to new line in mozglue. r=glandium
authorRyan Hunt <rhunt@eqrion.net>
Mon, 25 Feb 2019 16:10:53 -0600
changeset 461899 51a98c1a814f3a805e638149f778f3be1eca6583
parent 461898 e850de3b6ac3befb988c4360690269b5a2d8305b
child 461900 76dd23f024d5cac080443bf7872ef7103c429542
push id35631
push userrgurzau@mozilla.com
push dateFri, 01 Mar 2019 13:06:03 +0000
treeherdermozilla-central@d4e19870e27f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1523969
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1523969 part 18 - Move method definition inline comments to new line in mozglue. r=glandium Differential Revision: https://phabricator.services.mozilla.com/D21119
mozglue/build/Authenticode.cpp
mozglue/linker/XZStream.cpp
mozglue/misc/TimeStamp.cpp
--- a/mozglue/build/Authenticode.cpp
+++ b/mozglue/build/Authenticode.cpp
@@ -167,18 +167,18 @@ bool SignedBinary::QueryObject(const wch
 }
 
 /**
  * @param aTrustData must be a WINTRUST_DATA structure that has been zeroed out
  *                   and then populated at least with its |cbStruct|,
  *                   |dwUnionChoice|, and appropriate union field. This function
  *                   will then populate the remaining fields as appropriate.
  */
-/* static */ bool SignedBinary::VerifySignatureInternal(
-    WINTRUST_DATA& aTrustData) {
+/* static */
+bool SignedBinary::VerifySignatureInternal(WINTRUST_DATA& aTrustData) {
   aTrustData.dwUIChoice = WTD_UI_NONE;
   aTrustData.fdwRevocationChecks = WTD_REVOKE_NONE;
   aTrustData.dwStateAction = WTD_STATEACTION_VERIFY;
   aTrustData.dwProvFlags = WTD_CACHE_ONLY_URL_RETRIEVAL;
 
   const HWND hwnd = (HWND)INVALID_HANDLE_VALUE;
   GUID policyGUID = WINTRUST_ACTION_GENERIC_VERIFY_V2;
   LONG result = ::WinVerifyTrust(hwnd, &policyGUID, &aTrustData);
--- a/mozglue/linker/XZStream.cpp
+++ b/mozglue/linker/XZStream.cpp
@@ -28,17 +28,18 @@ static size_t ParseVarLenInt(const uint8
     if (i >= aBufSize || aBuf[i] == 0x0) {
       return 0;
     }
     *aValue |= static_cast<uint64_t>(aBuf[i] & 0x7F) << (i * 7);
   }
   return i;
 }
 
-/* static */ bool XZStream::IsXZ(const void* aBuf, size_t aBufSize) {
+/* static */
+bool XZStream::IsXZ(const void* aBuf, size_t aBufSize) {
   static const uint8_t kXzMagic[] = {0xfd, '7', 'z', 'X', 'Z', 0x0};
   MOZ_ASSERT(aBuf);
   return aBufSize > sizeof(kXzMagic) &&
          !memcmp(reinterpret_cast<const void*>(kXzMagic), aBuf,
                  sizeof(kXzMagic));
 }
 
 XZStream::XZStream(const void* aInBuf, size_t aInSize)
--- a/mozglue/misc/TimeStamp.cpp
+++ b/mozglue/misc/TimeStamp.cpp
@@ -38,21 +38,21 @@ struct TimeStampInitialization {
     mFirstTimeStamp = TimeStamp::Now();
   };
 
   ~TimeStampInitialization() { TimeStamp::Shutdown(); };
 };
 
 static bool sFuzzyfoxEnabled;
 
-/* static */ bool TimeStamp::GetFuzzyfoxEnabled() { return sFuzzyfoxEnabled; }
+/* static */
+bool TimeStamp::GetFuzzyfoxEnabled() { return sFuzzyfoxEnabled; }
 
-/* static */ void TimeStamp::SetFuzzyfoxEnabled(bool aValue) {
-  sFuzzyfoxEnabled = aValue;
-}
+/* static */
+void TimeStamp::SetFuzzyfoxEnabled(bool aValue) { sFuzzyfoxEnabled = aValue; }
 
 // These variables store the frozen time (as a TimeStamp) for FuzzyFox that
 // will be reported if FuzzyFox is enabled.
 // We overload the top bit of sCanonicalNow and sCanonicalGTC to
 // indicate if a Timestamp is a fuzzed timestamp (bit set) or not
 // (bit unset).
 #ifdef XP_WIN
 static Atomic<uint64_t> sCanonicalGTC;