diff options
| author | TheKodeToad <TheKodeToad@proton.me> | 2023-06-22 12:56:47 +0100 | 
|---|---|---|
| committer | TheKodeToad <TheKodeToad@proton.me> | 2023-06-22 12:56:47 +0100 | 
| commit | 1f16380efce61fa028d6c25308c8cac7925da72a (patch) | |
| tree | cd4e063c8e9f821d65195af6fec9d5483f6fbb08 /launcher/ui/dialogs | |
| parent | 94510edd722b72e375011c6d4a6629c478728c72 (diff) | |
| download | PrismLauncher-1f16380efce61fa028d6c25308c8cac7925da72a.tar.gz PrismLauncher-1f16380efce61fa028d6c25308c8cac7925da72a.tar.bz2 PrismLauncher-1f16380efce61fa028d6c25308c8cac7925da72a.zip | |
Fix
I could use rvalue references and fix my brain fart, but i think regular references are more readable and safer here.
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/ui/dialogs')
| -rw-r--r-- | launcher/ui/dialogs/InstallLoaderDialog.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/launcher/ui/dialogs/InstallLoaderDialog.cpp b/launcher/ui/dialogs/InstallLoaderDialog.cpp index a9d08fc5..cc8d7e54 100644 --- a/launcher/ui/dialogs/InstallLoaderDialog.cpp +++ b/launcher/ui/dialogs/InstallLoaderDialog.cpp @@ -32,14 +32,14 @@  class LoaderPage : public VersionSelectWidget, public BasePage {     public: -    LoaderPage(const QString&& id, -               const QString&& icon, -               const QString&& name, +    LoaderPage(const QString& id, +               const QString& icon, +               const QString& name,                 // "lightweight" loaders are independent to any game version                 const bool lightweight,                 const std::shared_ptr<PackProfile> profile,                 QWidget* parent = nullptr) -        : VersionSelectWidget(parent), m_id(std::move(id)), m_icon(std::move(icon)), m_name(std::move(name)) +        : VersionSelectWidget(parent), m_id(id), m_icon(icon), m_name(name)      {          const QString minecraftVersion = profile->getComponentVersion("net.minecraft");          setEmptyString(tr("No versions are currently available for Minecraft %1").arg(minecraftVersion)); | 
