I'll be removing all uses of NS_WITH_SERVICE from the mozilla source 
today. If you have code that currently isn't in the tree and uses 
NS_WITH_SERVICE, please change it from:

NS_WITH_SERVICE(IFoo, foo, FOO_CONTRACTID, &rv)

to

nsCOMPtr<IFoo> foo(do_GetService(FOO_CONTRACTID, &rv));

or for longer lines:

nsCOMPtr<IFoo> foo =
          do_GetService(FOO_CONTRACTID, &rv);

See http://bugzilla.mozilla.org/show_bug.cgi?id=86734 and 
http://bugscape/show_bug.cgi?id=7887 for more information.

   jag


Reply via email to