mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-01 09:27:54 +00:00
Catches incorrect reporter name as per #107
This commit is contained in:
parent
b084562b3b
commit
61756974d0
3 changed files with 27 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue