yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

Merge pull request #1871 from lioncash/move

yuzu/wait_tree: Pass QString by value and std::move in the initializer list for WaitTreeText
This commit is contained in:
bunnei 2018-12-14 13:13:32 -05:00 committed by GitHub
commit 7d39b19edc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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; return item_list;
} }
WaitTreeText::WaitTreeText(const QString& t) : text(t) {} WaitTreeText::WaitTreeText(QString t) : text(std::move(t)) {}
WaitTreeText::~WaitTreeText() = default; WaitTreeText::~WaitTreeText() = default;
QString WaitTreeText::GetText() const { QString WaitTreeText::GetText() const {

View File

@ -52,7 +52,7 @@ private:
class WaitTreeText : public WaitTreeItem { class WaitTreeText : public WaitTreeItem {
Q_OBJECT Q_OBJECT
public: public:
explicit WaitTreeText(const QString& text); explicit WaitTreeText(QString text);
~WaitTreeText() override; ~WaitTreeText() override;
QString GetText() const override; QString GetText() const override;