From 795cc3d873df13bfe2abaa56b17ea247bc892c20 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 20 Jul 2020 15:06:37 +0200 Subject: Word-wrap body text --- src/plugins/Fourchan.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/Fourchan.cpp b/src/plugins/Fourchan.cpp index 22a3faf..42bb54e 100644 --- a/src/plugins/Fourchan.cpp +++ b/src/plugins/Fourchan.cpp @@ -291,6 +291,7 @@ namespace QuickMedia { comment_text.back() = ' '; html_unescape_sequences(comment_text); // TODO: Do the same when wrapping is implemented + // TODO: Remove this int num_lines = 0; for(size_t i = 0; i < comment_text.size(); ++i) { if(comment_text[i] == '\n') { @@ -348,7 +349,7 @@ namespace QuickMedia { std::lock_guard lock(board_list_mutex); cached_thread_list_items.clear(); for(auto &body_item : body_items) { - cached_thread_list_items.push_back(std::make_unique(*body_item)); + cached_thread_list_items.push_back(std::move(body_item)); } } -- cgit v1.2.3