Catches incorrect reporter name as per #107
This commit is contained in:
1 parent
b084562b3b
commit
61756974d0
3 files changed
+27
-5
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user