Bug 1441754 - clang-format some Preferences.cpp code that needs it. r=glandium
MozReview-Commit-ID: E6kxiIs92qB
--- 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);