From 01968cb96ec759bfad19507823d22431e6bf80e4 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 29 Mar 2013 14:21:55 +0100 Subject: String: inherit from std::string rather than using it as a backend --- src/string.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/string.cc') 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 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)); } } -- cgit v1.2.3