Bug 1189587: Tighten signature of pref_HashTableLookup. r=njn
authorJesse Ruderman <jruderman@gmail.com>
Fri, 31 Jul 2015 13:06:12 -0700
changeset 287395 4f0b81bb6e85afa831d821c351c67a750cb595ba
parent 287394 21501e7b09ec867450f8c3cb58dba0ae16f833cc
child 287396 8c44dfae03c937d4f717bc28ce92794d08679c3b
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnjn
bugs1189587
milestone42.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 1189587: Tighten signature of pref_HashTableLookup. r=njn
modules/libpref/prefapi.cpp
modules/libpref/prefapi_private_data.h
--- a/modules/libpref/prefapi.cpp
+++ b/modules/libpref/prefapi.cpp
@@ -687,17 +687,17 @@ static void pref_SetValue(PrefValue* exi
         PR_ASSERT(newValue.stringVal);
         existingValue->stringVal = newValue.stringVal ? PL_strdup(newValue.stringVal) : nullptr;
     }
     else {
         *existingValue = newValue;
     }
 }
 
-PrefHashEntry* pref_HashTableLookup(const void *key)
+PrefHashEntry* pref_HashTableLookup(const char *key)
 {
 #ifndef MOZ_B2G
     MOZ_ASSERT(NS_IsMainThread());
 #endif
 
     return static_cast<PrefHashEntry*>(PL_DHashTableSearch(gHashTable, key));
 }
 
--- a/modules/libpref/prefapi_private_data.h
+++ b/modules/libpref/prefapi_private_data.h
@@ -21,17 +21,17 @@ class PrefSetting;
 
 void
 pref_savePrefs(PLDHashTable* aTable, char** aPrefArray);
 
 nsresult
 pref_SetPref(const mozilla::dom::PrefSetting& aPref);
 
 int pref_CompareStrings(const void *v1, const void *v2, void* unused);
-PrefHashEntry* pref_HashTableLookup(const void *key);
+PrefHashEntry* pref_HashTableLookup(const char *key);
 
 void pref_GetPrefFromEntry(PrefHashEntry *aHashEntry,
                            mozilla::dom::PrefSetting* aPref);
 
 size_t
 pref_SizeOfPrivateData(mozilla::MallocSizeOf aMallocSizeOf);
 
 #endif