Commit 65e4df75 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #3705 from SpecLad:unused-nNull

parents 4e8aac53 d218f280
......@@ -609,11 +609,6 @@ public:
ComPtr() throw()
{
}
ComPtr(int nNull) throw()
{
assert(nNull == 0);
p = NULL;
}
ComPtr(T* lp) throw()
{
p = lp;
......@@ -644,13 +639,6 @@ public:
{
return p.operator==(pT);
}
// For comparison to NULL
bool operator==(int nNull) const
{
assert(nNull == 0);
return p.operator==(NULL);
}
bool operator!=(_In_opt_ T* pT) const throw()
{
return p.operator!=(pT);
......@@ -3129,7 +3117,7 @@ public:
HRESULT hr = CheckShutdown();
if (SUCCEEDED(hr)) {
if (m_spClock == NULL) {
if (!m_spClock) {
hr = MF_E_NO_CLOCK; // There is no presentation clock.
} else {
// Return the pointer to the caller.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment