Bug 1441754 - clang-format some Preferences.cpp code that needs it. r=glandium
authorNicholas Nethercote <nnethercote@mozilla.com>
Wed, 28 Feb 2018 16:09:24 +1100
changeset 406507 4a6b832ce2521677f35b380245a621c2d46eb03c
parent 406506 fd432ad90d28c730dda9aa1b9a8fbde7ab86d519
child 406508 17fe71b2e622c2ae4bfcc963156ddc8815f40dd1
push id100446
push usernnethercote@mozilla.com
push dateMon, 05 Mar 2018 02:52:02 +0000
treeherdermozilla-inbound@76a740cc4454 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1441754
milestone60.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 1441754 - clang-format some Preferences.cpp code that needs it. r=glandium MozReview-Commit-ID: E6kxiIs92qB
modules/libpref/Preferences.cpp
--- a/modules/libpref/Preferences.cpp
+++ b/modules/libpref/Preferences.cpp
@@ -712,17 +712,17 @@ private:
 
   PrefValue mDefaultValue;
   PrefValue mUserValue;
 };
 
 class PrefEntry : public PLDHashEntryHdr
 {
 public:
-  Pref* mPref;  // Note: this is never null in a live entry.
+  Pref* mPref; // Note: this is never null in a live entry.
 
   static bool MatchEntry(const PLDHashEntryHdr* aEntry, const void* aKey)
   {
     auto entry = static_cast<const PrefEntry*>(aEntry);
     auto prefName = static_cast<const char*>(aKey);
 
     return entry->mPref->MatchEntry(prefName);
   }
@@ -778,20 +778,18 @@ static CallbackNode* gLastPriorityNode =
 
 static bool gIsAnyPrefLocked = false;
 
 // These are only used during the call to NotifyCallbacks().
 static bool gCallbacksInProgress = false;
 static bool gShouldCleanupDeadNodes = false;
 
 static PLDHashTableOps pref_HashTableOps = {
-  PLDHashTable::HashStringKey,
-  PrefEntry::MatchEntry,
-  PLDHashTable::MoveEntryStub,
-  PrefEntry::ClearEntry,
+  PLDHashTable::HashStringKey, PrefEntry::MatchEntry,
+  PLDHashTable::MoveEntryStub, PrefEntry::ClearEntry,
   PrefEntry::InitEntry,
 };
 
 static Pref*
 pref_HashTableLookup(const char* aPrefName);
 
 static void
 NotifyCallbacks(const char* aPrefName);