Commit a2b63958 authored by Cédric Traizet's avatar Cédric Traizet

PERF: use std find instead of loop

parent d7468bd6
......@@ -269,12 +269,7 @@ void Application::AddDocTag(const std::string & tag)
bool Application::IsDeprecated()
for (auto tag:m_DocTags)
if (tag==Tags::Deprecated)
return true;
return false;
return std::find(m_DocTags.begin(), m_DocTags.end(), Tags::Deprecated) != m_DocTags.end();
DocExampleStructure::Pointer Application::GetDocExample()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment