From 005a010ee6a67191ec24583780310fcf217ff30c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 4 Aug 2013 14:46:33 +0200 Subject: More code cleanups! --- gui/mainwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gui/mainwindow.cpp') diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index d3dee254..25949042 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -53,12 +53,12 @@ #include "AppVersion.h" #include "tasks/LoginTask.h" -#include "tasks/GameUpdateTask.h" #include "BaseInstance.h" #include "InstanceFactory.h" #include "MinecraftProcess.h" #include "OneSixAssets.h" +#include "OneSixUpdate.h" #include "instancemodel.h" #include "instancedelegate.h" @@ -393,7 +393,7 @@ void MainWindow::doLogin(const QString& errorMsg) LoginDialog* loginDlg = new LoginDialog(this, errorMsg); if (loginDlg->exec()) { - UserInfo uInfo(loginDlg->getUsername(), loginDlg->getPassword()); + UserInfo uInfo{loginDlg->getUsername(), loginDlg->getPassword()}; TaskDialog* tDialog = new TaskDialog(this); LoginTask* loginTask = new LoginTask(uInfo, tDialog); @@ -412,7 +412,7 @@ void MainWindow::onLoginComplete(LoginResponse response) return; m_activeLogin = LoginResponse(response); - GameUpdateTask *updateTask = m_activeInst->doUpdate(); + OneSixUpdate *updateTask = m_activeInst->doUpdate(); if(!updateTask) { launchInstance(m_activeInst, m_activeLogin); -- cgit v1.2.3