From 5275c1d9e3619799dbc0031710c96d493e7dec14 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 12 Jul 2021 23:39:00 +0200 Subject: [PATCH] Make Document::remove_html static. --- src/document.cpp | 2 +- src/document.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/document.cpp b/src/document.cpp index 7bdbb07..a93a556 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -233,7 +233,7 @@ void Document::parse_rss(const pt::ptree &tree) } } -string Document::remove_html(string html) const +string Document::remove_html(string html) { html = mastodonpp::unescape_html(html); // Decode HTML entities. diff --git a/src/document.hpp b/src/document.hpp index b219949..d2f641a 100644 --- a/src/document.hpp +++ b/src/document.hpp @@ -1,5 +1,5 @@ /* This file is part of mastorss. - * Copyright © 2019, 2020 tastytea + * Copyright © 2019-2021 tastytea * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -84,7 +84,7 @@ private: */ void download(const string &uri, bool temp_redirect = false); void parse_rss(const pt::ptree &tree); - [[nodiscard]] string remove_html(string html) const; + [[nodiscard]] static string remove_html(string html); [[nodiscard]] static string extract_location(const curl_wrapper::answer &answer); string add_hashtags(const string &text);