From be591b21071f33700ac0275fad41188ca50a8041 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Wed, 15 Mar 2017 17:43:49 +0200 Subject: [PATCH] Changed: replace c++11 code --HG-- branch : develop --- code/ryzom/client/src/interface_v3/chat_text_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ryzom/client/src/interface_v3/chat_text_manager.cpp b/code/ryzom/client/src/interface_v3/chat_text_manager.cpp index 5195d0b51..e21872018 100644 --- a/code/ryzom/client/src/interface_v3/chat_text_manager.cpp +++ b/code/ryzom/client/src/interface_v3/chat_text_manager.cpp @@ -187,8 +187,8 @@ static inline bool isUrlTag(const ucstring &s, ucstring::size_type index, ucstri if (isUrl && i > 0 && !markdown) { // '}' is in the list because of color tags, ie "@{FFFF}http://..." - const ucchar chars[] = {' ', '"', '\'', '(', '[', '}'}; - isUrl = std::find(std::begin(chars), std::end(chars), s[i - 1]) != std::end(chars); + const vector chars {' ', '"', '\'', '(', '[', '}'}; + isUrl = std::find(chars.begin(), chars.end(), s[i - 1]) != chars.end(); } return isUrl; }