Bug 1441754 - clang-format some Preferences.cpp code that needs it. r=glandium draft
authorNicholas Nethercote <nnethercote@mozilla.com>
Wed, 28 Feb 2018 16:09:24 +1100
changeset 760831 bef9a1447c5183ac9bb39f89154f41f2bc5a9237
parent 760830 6c977546a69eeee62ebc87e335982e8278217484
child 760832 fe50a84a16bda1e82d29217be779e7395d34ebb8
push id100761
push usernnethercote@mozilla.com
push dateWed, 28 Feb 2018 07:48:23 +0000
reviewersglandium
bugs1441754
milestone60.0a1
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);