/* * Copyright (c) 2011-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include #include namespace Swift { namespace Jingle { template JingleContentPayload::ref getContentWithDescription(const std::vector& contents) { for (const auto& content : contents) { if (content->getDescription()) { return content; } } return JingleContentPayload::ref(); } } }