summaryrefslogtreecommitdiff
path: root/src/string.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-03-29 14:21:55 +0100
committerMaxime Coste <frrrwww@gmail.com>2013-03-29 19:35:48 +0100
commit01968cb96ec759bfad19507823d22431e6bf80e4 (patch)
tree12552563f460c1e344e2fb0f09fd6aebe48958aa /src/string.cc
parent1f4072dc7294e6c0b13af4243248a52e185cfc1a (diff)
String: inherit from std::string rather than using it as a backend
Diffstat (limited to 'src/string.cc')
-rw-r--r--src/string.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string.cc b/src/string.cc
index 2152cb15..8664ce16 100644
--- a/src/string.cc
+++ b/src/string.cc
@@ -51,8 +51,8 @@ std::vector<String> split(const String& str, char separator)
String String::replace(const String& expression,
const String& replacement) const
{
- boost::regex re(expression.m_content);
- return String(boost::regex_replace(m_content, re, replacement.m_content));
+ boost::regex re(expression);
+ return String(boost::regex_replace(*this, re, replacement));
}
}