Bug 1193762 part 8 - Fix things that will break; r=froydnj

It looks like VC++ doesn't like comparisons of nsCOMPtr to 0 after this
change, but those are bad style anyway, so I removed them from
TestCOMPtr.cpp instead of trying to make them work.
This commit is contained in:
Aryeh Gregor
2016-05-01 21:29:23 +03:00
parent c00d4b886e
commit 1c3d681cd3
18 changed files with 81 additions and 82 deletions

View File

@@ -1907,7 +1907,7 @@ public:
MediaStreamTrackSource)
explicit CaptureStreamTrackSource(HTMLMediaElement* aElement)
: MediaStreamTrackSource(nsCOMPtr<nsIPrincipal>(aElement->GetCurrentPrincipal()),
: MediaStreamTrackSource(nsCOMPtr<nsIPrincipal>(aElement->GetCurrentPrincipal()).get(),
true,
nsString())
, mElement(aElement)