diff options
Diffstat (limited to 'src/include/rc_string.hpp')
-rw-r--r-- | src/include/rc_string.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/include/rc_string.hpp b/src/include/rc_string.hpp index 630f8e89..fd230062 100644 --- a/src/include/rc_string.hpp +++ b/src/include/rc_string.hpp @@ -23,7 +23,7 @@ public: RcString(s.data(), s.size()) { } - + RcString(const RcString& x): m_ptr(x.m_ptr), m_len(x.m_len) @@ -37,9 +37,9 @@ public: x.m_ptr = nullptr; x.m_len = 0; } - + ~RcString(); - + RcString& operator=(const RcString& x) { if( &x != this ) @@ -63,8 +63,8 @@ public: } return *this; } - - + + const char* c_str() const { if( m_len > 0 ) { |