Bug 808146: Declare nsMainThreadPtrHolder as MOZ_FINAL, to fix -Wdelete-non-virtual-dtor build-warning-spam. r=bholley

This commit is contained in:
Daniel Holbert 2012-11-02 21:07:19 -07:00
parent 3ff338f849
commit 034e0ecac8

View File

@ -102,7 +102,7 @@ NS_ProxyRelease
* an nsMainThreadPtrHandle<T> rather than an nsCOMPtr<T>.
*/
template<class T>
class nsMainThreadPtrHolder
class nsMainThreadPtrHolder MOZ_FINAL
{
public:
// We can only acquire a pointer on the main thread.