aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-07-20 15:06:37 +0200
committerdec05eba <dec05eba@protonmail.com>2020-07-20 15:06:37 +0200
commit795cc3d873df13bfe2abaa56b17ea247bc892c20 (patch)
tree45f5918e7778fe5793f8636747f2834ba01ef141 /src/plugins
parentf52d48906f7fad95353da3cc7ddfe75b12106e4e (diff)
Word-wrap body text
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Fourchan.cpp3
1 files changed, 2 insertions, 1 deletions
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<std::mutex> lock(board_list_mutex);
cached_thread_list_items.clear();
for(auto &body_item : body_items) {
- cached_thread_list_items.push_back(std::make_unique<BodyItem>(*body_item));
+ cached_thread_list_items.push_back(std::move(body_item));
}
}