HashMap does not work for const foo * keys and values because the pointer specialization fails to cast away const and so fails some implicit conversions.
Created attachment 5253 [details] the fix
Comment on attachment 5253 [details] the fix the KDE folks have been removing c-style casts from the kxmlcore code they imported from us. This just gives them more to remove. That said, this looks fine. r=me.
I think if you're going to const_cast and reinterpret_cast both, then you may as well just use a C-style cast.