summaryrefslogtreecommitdiff
path: root/src/include/rc_string.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-12-25 17:35:00 +1100
committerJohn Hodge <tpg@mutabah.net>2016-12-25 17:35:00 +1100
commit69537686be13f6ff84ce79e84374351e943ab21b (patch)
treede4bef9b5ace623b59751447b9131046483d2388 /src/include/rc_string.hpp
parent27b0292ca6828eed7e782a57ad4d641f0ebf7357 (diff)
parent753a2f44cc4c00b952cddae2ceed066ebb18a470 (diff)
downloadmrust-69537686be13f6ff84ce79e84374351e943ab21b.tar.gz
Merge branch 'master' of https://github.com/thepowersgang/mrustc
Diffstat (limited to 'src/include/rc_string.hpp')
-rw-r--r--src/include/rc_string.hpp10
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 )
{