Some callers of PLDHashTable::Search() use const_cast, some others are not
const methods due to non-const PLDHashTable::Search().
This patch removes const_cast from the former and mark some methods of the
latter const.
MozReview-Commit-ID: C8ayoi7mXc1
nsCommandParams is used internally but accessed via nsICommandParams. For
such internal users, nsCommandParams should have non-virtual methods to
get/set values.
The new method names are similar to Preferences API for consistency with it.
MozReview-Commit-ID: FJwWMFzV9w
nsICommandParams::GetCStringValue() and nsICommandParams::SetCStringValue()
treat char. However, this makes their callers complicated. So, they should
be rewritten as treating nsACString.
MozReview-Commit-ID: DWO9veSyzyG