#include "urlreader.h" namespace newsboat { std::vector& UrlReader::get_urls() { return urls; } std::vector& UrlReader::get_tags(const std::string& url) { return tags[url]; } std::vector UrlReader::get_alltags() { std::vector tmptags; for (const auto& t : alltags) { if (t.substr(0, 1) != "~") { // std::copy_if would make this code less readable IMHO // cppcheck-suppress useStlAlgorithm tmptags.push_back(t); } } return tmptags; } } // namespace newsboat