mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 01:09:50 +00:00
Changed: replace c++11 code
--HG-- branch : develop
This commit is contained in:
parent
076a50e3fb
commit
be591b2107
1 changed files with 2 additions and 2 deletions
|
@ -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<ucchar> chars {' ', '"', '\'', '(', '[', '}'};
|
||||
isUrl = std::find(chars.begin(), chars.end(), s[i - 1]) != chars.end();
|
||||
}
|
||||
return isUrl;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue