diff --git a/Modules/Wrappers/ApplicationEngine/src/otbWrapperApplication.cxx b/Modules/Wrappers/ApplicationEngine/src/otbWrapperApplication.cxx
index 1d64c7614e2d99adf18d7c77a74e1595cb7d6ff2..7213308d8daf9f009442d2fb886b39b421bcffdf 100644
--- a/Modules/Wrappers/ApplicationEngine/src/otbWrapperApplication.cxx
+++ b/Modules/Wrappers/ApplicationEngine/src/otbWrapperApplication.cxx
@@ -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()