observer->Observe(observer, NS_LITERAL_STRING("nsPref:changed").get(),
observer->Observe(NS_STATIC_CAST(nsIPref *, nsPref::GetInstance()), NS_LITERAL_STRING("nsPref:changed").get(),
NotifyObserver(const char *newpref, void *data){    nsCOMPtr<nsIObserver> observer = NS_STATIC_CAST(nsIObserver *, data);    observer->Observe(observer, NS_LITERAL_STRING("nsPref:changed").get(),                      NS_ConvertASCIItoUCS2(newpref).get());    return 0;}