diff --git a/src/comment.cpp b/src/comment.cpp --- a/src/comment.cpp +++ b/src/comment.cpp @@ -156,7 +156,7 @@ void Comment::setChildren(QList children) { - d->m_children = children; + d->m_children = std::move(children); // TODO KF6 Make QList const & and remove the std::move } QList Comment::children() const diff --git a/src/content.cpp b/src/content.cpp --- a/src/content.cpp +++ b/src/content.cpp @@ -317,7 +317,7 @@ void Attica::Content::setIcons(QList icons) { - d->m_icons = icons; + d->m_icons = std::move(icons); // TODO KF6 Make QList const & and remove the std::move } QList Attica::Content::videos() @@ -327,7 +327,7 @@ void Attica::Content::setVideos(QList videos) { - d->m_videos = videos; + d->m_videos = std::move(videos); } QStringList Attica::Content::tags() const diff --git a/src/forum.cpp b/src/forum.cpp --- a/src/forum.cpp +++ b/src/forum.cpp @@ -126,7 +126,7 @@ void Forum::setChildren(QList children) { - d->m_children = children; + d->m_children = std::move(children); // TODO KF6 Make QList const & and remove the std::move } QList Forum::children() const diff --git a/src/knowledgebaseentry.cpp b/src/knowledgebaseentry.cpp --- a/src/knowledgebaseentry.cpp +++ b/src/knowledgebaseentry.cpp @@ -72,7 +72,7 @@ void KnowledgeBaseEntry::setId(QString id) { - d->m_id = id; + d->m_id = std::move(id); // TODO KF6 Make QString const & and remove the std::move } QString KnowledgeBaseEntry::id() const