From 2b9017a69ca74a80eea30c7e4f020b1b73d6fd7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 29 Oct 2016 01:34:43 +0200 Subject: NOISSUE clean up some bad/dead code --- application/MultiMC.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'application/MultiMC.cpp') diff --git a/application/MultiMC.cpp b/application/MultiMC.cpp index f4c5318f..927468b6 100644 --- a/application/MultiMC.cpp +++ b/application/MultiMC.cpp @@ -179,7 +179,7 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv) adjustedBy += "Fallback to binary path " + dataPath; } - launchId = args["launch"].toString(); + instanceIdToLaunch = args["launch"].toString(); if (!FS::ensureFolderPathExists(dataPath) || !QDir::setCurrent(dataPath)) { @@ -220,9 +220,9 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv) } qDebug() << "Binary path : " << binPath; qDebug() << "Application root path : " << rootPath; - if(!launchId.isEmpty()) + if(!instanceIdToLaunch.isEmpty()) { - qDebug() << "ID of instance to launch : " << launchId; + qDebug() << "ID of instance to launch : " << instanceIdToLaunch; } // load settings @@ -400,7 +400,7 @@ void MultiMC::initIcons() } -void moveFile(const QString &oldName, const QString &newName) +static void moveFile(const QString &oldName, const QString &newName) { QFile::remove(newName); QFile::copy(oldName, newName); @@ -439,7 +439,7 @@ void MultiMC::initLogger() qInstallMessageHandler(appDebugOutput); - logFile = std::make_shared(logBase.arg(0)); + logFile = std::unique_ptr(new QFile(logBase.arg(0))); logFile->open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Truncate); } -- cgit v1.2.3