mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
the bayesian plugin is a service, so do get service. thanks to beard for pointing this out.
part of bug #169638. r=dmose. a=asa, since this doesn't affect end users.
This commit is contained in:
parent
668e25f0ae
commit
e667d645c7
@ -1988,10 +1988,8 @@ nsMsgIncomingServer::GetSpamFilterPlugin(nsIMsgFilterPlugin **aFilterPlugin)
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
// create the plugin object
|
||||
//
|
||||
mFilterPlugin = do_CreateInstance(
|
||||
"@mozilla.org/messenger/filter-plugin;1?name=bayesianfilter", &rv);
|
||||
// get the plugin service
|
||||
mFilterPlugin = do_GetService("@mozilla.org/messenger/filter-plugin;1?name=bayesianfilter", &rv);
|
||||
|
||||
if (NS_FAILED(rv)) {
|
||||
NS_ERROR("nsMsgIncomingServer::InitializeFilterPlugins():"
|
||||
|
Loading…
Reference in New Issue
Block a user