From 79f5618ebaa1fbe899780b73b2b43544ac54ab42 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Tue, 17 Dec 2013 18:18:13 +0100 Subject: [PATCH] Use std::string::find() in String::Contains(). Refs #5355 --- lib/base/qstring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/qstring.cpp b/lib/base/qstring.cpp index 24cc970df..85694708b 100644 --- a/lib/base/qstring.cpp +++ b/lib/base/qstring.cpp @@ -183,7 +183,7 @@ void String::Trim(void) bool String::Contains(const String& str) const { - return boost::algorithm::contains(m_Data, str); + return (m_Data.find(str) != std::string::npos); } void String::swap(String& str)