Applied clang formatting
Signed-off-by: Michael Tyson <michael@atastypixel.com>
This commit is contained in:
parent
5661444414
commit
ced2f9d1a0
3 changed files with 4 additions and 3 deletions
|
@ -276,7 +276,8 @@ Application::Application(int& argc, char** argv) : QApplication(argc, argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
// error if --launch is missing with --server or --profile
|
// 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;
|
std::cerr << "--server, --profile and --offline can only be used in combination with --launch!" << std::endl;
|
||||||
m_status = Application::Failed;
|
m_status = Application::Failed;
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -212,7 +212,7 @@ class Application : public QApplication {
|
||||||
bool demo = false,
|
bool demo = false,
|
||||||
MinecraftTarget::Ptr targetToJoin = nullptr,
|
MinecraftTarget::Ptr targetToJoin = nullptr,
|
||||||
MinecraftAccountPtr accountToUse = nullptr,
|
MinecraftAccountPtr accountToUse = nullptr,
|
||||||
const QString &offlineName = QString());
|
const QString& offlineName = QString());
|
||||||
bool kill(InstancePtr instance);
|
bool kill(InstancePtr instance);
|
||||||
void closeCurrentWindow();
|
void closeCurrentWindow();
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ class LaunchController : public Task {
|
||||||
|
|
||||||
void setOnline(bool online) { m_online = online; }
|
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; }
|
void setDemo(bool demo) { m_demo = demo; }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue