/* * Copyright (c) 2011 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 (size_t i = 0; i < contents.size(); ++i) { if (contents[i]->getDescription()) { return contents[i]; } } return JingleContentPayload::ref(); } } }