Catches incorrect reporter name as per #107

This commit is contained in:
Phil Nash 2012-07-28 20:37:07 +01:00
parent b084562b3b
commit 61756974d0
3 changed files with 27 additions and 5 deletions

View file

@ -20,10 +20,12 @@ namespace Catch {
public:
Ptr() : m_p( NULL ){}
Ptr( T* p ) : m_p( p ){
m_p->addRef();
if( m_p )
m_p->addRef();
}
Ptr( const Ptr& other ) : m_p( other.m_p ){
m_p->addRef();
if( m_p )
m_p->addRef();
}
~Ptr(){
if( m_p )
@ -63,6 +65,9 @@ namespace Catch {
const T* operator->() const{
return m_p;
}
bool operator !() const {
return m_p == NULL;
}
private:
T* m_p;