From 9f1b09d15a84d185e607057fa9c4a1d4657e21d3 Mon Sep 17 00:00:00 2001 From: Arttu Tarkiainen Date: Fri, 8 Oct 2021 16:42:39 +0300 Subject: Replace occurrences of "TargetDir" string with 'scTargetDir' constant This makes it easier to grep usage of variable and we shouldn't really use the magic string as there is already a constant. Change-Id: I96a6b3901f79127b7cf71494643e2cd038df6670 Reviewed-by: Iikka Eklund --- src/sdk/commandlineinterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sdk/commandlineinterface.cpp') diff --git a/src/sdk/commandlineinterface.cpp b/src/sdk/commandlineinterface.cpp index 59e9afe90..a63b2a5bf 100644 --- a/src/sdk/commandlineinterface.cpp +++ b/src/sdk/commandlineinterface.cpp @@ -264,7 +264,7 @@ bool CommandLineInterface::setTargetDir() if (m_parser.isSet(CommandLineOptions::scRootLong)) { targetDir = m_parser.value(CommandLineOptions::scRootLong); } else { - targetDir = m_core->value(QLatin1String("TargetDir")); + targetDir = m_core->value(QInstaller::scTargetDir); qCDebug(QInstaller::lcInstallerInstallLog) << "No target directory specified, using default value:" << targetDir; } if (m_core->checkTargetDir(targetDir)) { @@ -272,7 +272,7 @@ bool CommandLineInterface::setTargetDir() if (!targetDirWarning.isEmpty()) { qCWarning(QInstaller::lcInstallerInstallLog) << m_core->targetDirWarning(targetDir); } else { - m_core->setValue(QLatin1String("TargetDir"), targetDir); + m_core->setValue(QInstaller::scTargetDir, targetDir); return true; } } -- cgit v1.2.3