diff options
Diffstat (limited to 'src/rc_string.cpp')
-rw-r--r-- | src/rc_string.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rc_string.cpp b/src/rc_string.cpp index 260ba90a..b56f2e62 100644 --- a/src/rc_string.cpp +++ b/src/rc_string.cpp @@ -23,6 +23,8 @@ RcString::RcString(const char* s, unsigned int len): for(unsigned int j = 0; j < len; j ++ ) data_mut[j] = s[j]; data_mut[len] = '\0'; + + //::std::cout << "RcString(" << m_ptr << " \"" << *this << "\") - " << *m_ptr << " (creation)" << ::std::endl; } } RcString::~RcString() @@ -30,7 +32,7 @@ RcString::~RcString() if(m_ptr) { *m_ptr -= 1; - //::std::cout << "RcString(\"" << *this << "\") - " << *m_ptr << " refs left" << ::std::endl; + //::std::cout << "RcString(" << m_ptr << " \"" << *this << "\") - " << *m_ptr << " refs left (drop)" << ::std::endl; if( *m_ptr == 0 ) { delete[] m_ptr; |