Skip to content
Snippets Groups Projects
Unverified Commit 7d39b19e authored by bunnei's avatar bunnei Committed by GitHub
Browse files

Merge pull request #1871 from lioncash/move

yuzu/wait_tree: Pass QString by value and std::move in the initializer list for WaitTreeText
parents 1006df7f 17b43553
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,7 @@ std::vector<std::unique_ptr<WaitTreeThread>> WaitTreeItem::MakeThreadItemList() ...@@ -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 {
......
...@@ -52,7 +52,7 @@ private: ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment