Change-Id: I8eaa21c94a64d882a0e9045ede18521e66b52651
Signed-off-by: Michal Eljasiewicz <m.eljasiewic@samsung.com>
{
FetchCynaraPolicyDescriptions(false);
- for (auto it = TypeToDescription.rbegin(); it != TypeToDescription.rend(); ++it)
- policiesDescriptions.push_back(it->second);
+ for (const auto &it : TypeToDescription)
+ policiesDescriptions.push_back(it.second);
}
std::string CynaraAdmin::convertToPolicyDescription(const int policyType, bool forceRefresh)
/**
* This function returns array of available policy levels in form of simple
* text descriptions. List is sorted using internal policy level value,
- * from highest value to lowest and starts with "Allow".
+ * from lowest value to highest and starts with "Deny".
*
* Caller needs to free memory allocated for the list using
* security_manager_policy_levels_free().