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

PERF: use std find instead of loop

No related merge requests found
Showing with 1 addition and 6 deletions
+1 -6
......@@ -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()
......
Supports Markdown
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