diff options
author | ubsan <npmazzuca@gmail.com> | 2016-12-24 19:07:08 -0700 |
---|---|---|
committer | ubsan <npmazzuca@gmail.com> | 2016-12-24 19:07:08 -0700 |
commit | 0c14c734fa32014fd24297ccdbed927016185ffd (patch) | |
tree | ed4bbff4be39c44c57164641f4ed32b5ad4675f0 /src/include/rc_string.hpp | |
parent | d12a8a886caf2e0edf33c1af831b1df990d2c892 (diff) | |
download | mrust-0c14c734fa32014fd24297ccdbed927016185ffd.tar.gz |
No more tears!
No more DOS line endings or trailing whitespace either
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 ) { |