Re: refcounting - which types to use ?

2017-08-24 Thread jyavenard
On Thursday, August 17, 2017 at 1:02:56 PM UTC+2, Aryeh Gregor wrote: > Note that in this case you cannot ignore the return value -- it must > be assigned to an nsCOMPtr or a RefPtr, or else it will leak. Ideally > we would allow a return type of nsCOMPtr&&, but > currently I think we don't. This

Re: refcounting - which types to use ?

2017-08-24 Thread jyavenard
On Thursday, August 24, 2017 at 11:56:53 AM UTC+2, James Cheng wrote: > How could I make it compile error? > > I did write > > RefPtr xxx = yyy; > xxx.forget(); You need to run the static analyser. The documentation about MOZ_MUST_USE_TYPE is explained there http://searchfox.org/mozilla-centra

Re: PSA: Constructors callable with one argument should be marked as explicit/implicit

2014-12-18 Thread jyavenard
On Thursday, December 18, 2014 1:08:23 PM UTC+11, Ehsan Akhgari wrote: > That being said, if someone wants to add a mach command for this, please > go ahead by all means. I definitely have no objection. is there documentation somewhere on how to run the clang-plugin ? I've installed clang-3.6

Re: Intent to implement HTMLMediaElement.srcObject partially

2015-07-15 Thread jyavenard
On Thursday, July 16, 2015 at 5:42:39 AM UTC+10, Jan-Ivar Bruaroey wrote: > Hi, > > We intend to un-prefix HTMLMediaElement.srcObject (it currently exists > as HTMLMediaElement.mozSrcObject), even though it only supports a subset > of the types mandated in the spec. [1] > > This means it will s