yuzu/wait_tree: Pass QString by value and std::move in the initializer list for WaitTreeText

Just a trivial modernization that potentially avoids copying strings in certain scenarios.
This commit is contained in:
Lioncash 2018-12-05 15:59:48 -05:00
parent 44e35994ce
commit 061b5571b6
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@ std::vector<std::unique_ptr<WaitTreeThread>> WaitTreeItem::MakeThreadItemList()
return item_list;
}
WaitTreeText::WaitTreeText(const QString& t) : text(t) {}
WaitTreeText::WaitTreeText(QString t) : text(std::move(t)) {}
WaitTreeText::~WaitTreeText() = default;
QString WaitTreeText::GetText() const {