diff --git a/launcher/Application.cpp b/launcher/Application.cpp index 7e85938ce..9a1ed440e 100644 --- a/launcher/Application.cpp +++ b/launcher/Application.cpp @@ -276,7 +276,8 @@ Application::Application(int& argc, char** argv) : QApplication(argc, argv) } // error if --launch is missing with --server or --profile - if ((!m_serverToJoin.isEmpty() || !m_worldToJoin.isEmpty() || !m_profileToUse.isEmpty() || m_offline) && m_instanceIdToLaunch.isEmpty()) { + if ((!m_serverToJoin.isEmpty() || !m_worldToJoin.isEmpty() || !m_profileToUse.isEmpty() || m_offline) && + m_instanceIdToLaunch.isEmpty()) { std::cerr << "--server, --profile and --offline can only be used in combination with --launch!" << std::endl; m_status = Application::Failed; return; diff --git a/launcher/Application.h b/launcher/Application.h index 5d672a148..6b218f9f8 100644 --- a/launcher/Application.h +++ b/launcher/Application.h @@ -212,7 +212,7 @@ class Application : public QApplication { bool demo = false, MinecraftTarget::Ptr targetToJoin = nullptr, MinecraftAccountPtr accountToUse = nullptr, - const QString &offlineName = QString()); + const QString& offlineName = QString()); bool kill(InstancePtr instance); void closeCurrentWindow(); diff --git a/launcher/LaunchController.h b/launcher/LaunchController.h index 82cd2e23d..0abdeeb15 100644 --- a/launcher/LaunchController.h +++ b/launcher/LaunchController.h @@ -56,7 +56,7 @@ class LaunchController : public Task { void setOnline(bool online) { m_online = online; } - void setOfflineName(const QString &offlineName) { m_offlineName = offlineName; } + void setOfflineName(const QString& offlineName) { m_offlineName = offlineName; } void setDemo(bool demo) { m_demo = demo; }