summaryrefslogtreecommitdiffstats
path: root/src/libs/installer
diff options
context:
space:
mode:
authorArttu Tarkiainen <arttu.tarkiainen@qt.io>2021-10-08 16:42:39 +0300
committerArttu Tarkiainen <arttu.tarkiainen@qt.io>2021-10-13 06:39:43 +0000
commit9f1b09d15a84d185e607057fa9c4a1d4657e21d3 (patch)
tree150bf69f5550e4daed4049cabbd83320cd36c3f5 /src/libs/installer
parent899de36a0dabdda432809b480dbac0b42afe5723 (diff)
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 <iikka.eklund@qt.io>
Diffstat (limited to 'src/libs/installer')
-rw-r--r--src/libs/installer/extractarchiveoperation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/installer/extractarchiveoperation.cpp b/src/libs/installer/extractarchiveoperation.cpp
index b2bda24a2..7660dadb0 100644
--- a/src/libs/installer/extractarchiveoperation.cpp
+++ b/src/libs/installer/extractarchiveoperation.cpp
@@ -128,7 +128,7 @@ bool ExtractArchiveOperation::performOperation()
// TargetDir for saving filenames, otherwise those would be saved to
// extracted folder.
if (packageManager())
- installDir = packageManager()->value(QLatin1String("TargetDir"));
+ installDir = packageManager()->value(scTargetDir);
const QString resourcesPath = installDir + QLatin1Char('/') + QLatin1String("installerResources");
QString fileDirectory = resourcesPath + QLatin1Char('/') + archivePath.section(QLatin1Char('/'), 1, 1,
QString::SectionSkipEmpty) + QLatin1Char('/');
@@ -184,7 +184,7 @@ bool ExtractArchiveOperation::undoOperation()
bool useStringListType(value(QLatin1String("files")).type() == QVariant::StringList);
QString targetDir = arguments().at(1);
if (packageManager())
- targetDir = packageManager()->value(QLatin1String("TargetDir"));
+ targetDir = packageManager()->value(scTargetDir);
QStringList files;
if (useStringListType) {
files = value(QLatin1String("files")).toStringList();