Skip to content

Commit

Permalink
Fix build issue with throw() being used virtual method from derived c…
Browse files Browse the repository at this point in the history
…lass which used noexcept instead.
  • Loading branch information
fdwr committed Mar 30, 2018
1 parent 0d97280 commit 42f2c53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,12 @@ class ComObject : public IUnknown
return E_NOINTERFACE;
}

virtual ULONG STDMETHODCALLTYPE AddRef() noexcept override
virtual ULONG STDMETHODCALLTYPE AddRef() throw() override
{
return InterlockedIncrement(&refCount_);
}

virtual ULONG STDMETHODCALLTYPE Release() noexcept override
virtual ULONG STDMETHODCALLTYPE Release() throw() override
{
auto newRefCount = InterlockedDecrement(&refCount_);
if (newRefCount == 0)
Expand Down

0 comments on commit 42f2c53

Please sign in to comment.