summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qprocess_p.h
diff options
context:
space:
mode:
authorThomas Sondergaard <thomas.sondergaard@karoshealth.com>2017-06-11 18:09:21 +0200
committerThomas Sondergaard <thomas@sondergaard.cc>2017-06-13 06:09:36 +0000
commitb4381100280adbfa4cb6c4d8c84eed8f1dc126b9 (patch)
tree77083147945dd1374fcd60aaf37174228b23a106 /src/corelib/io/qprocess_p.h
parent1a5fa66269eb7c7e1e2f9372cb2b87738b5cac72 (diff)
Rename QProcessEnvironmentPrivate::hash to vars
Also use auto for iterators to vars. This is a small refactoring in preparation for changing type of vars to QMap. Task-number: QTBUG-61315 Change-Id: I5731d7916b6f54a0da5be2da378c09a7688bd870 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qprocess_p.h')
-rw-r--r--src/corelib/io/qprocess_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/io/qprocess_p.h b/src/corelib/io/qprocess_p.h
index 6e0630eb66..b8820510b3 100644
--- a/src/corelib/io/qprocess_p.h
+++ b/src/corelib/io/qprocess_p.h
@@ -197,17 +197,17 @@ public:
// do not need a lock, as they detach objects (however, we need to
// ensure that they really detach before using prepareName()).
MutexLocker locker(&other);
- hash = other.hash;
+ vars = other.vars;
nameMap = other.nameMap;
// We need to detach our members, so that our mutex can protect them.
// As we are being detached, they likely would be detached a moment later anyway.
- hash.detach();
+ vars.detach();
nameMap.detach();
}
#endif
typedef QHash<Key, Value> Hash;
- Hash hash;
+ Hash vars;
#ifdef Q_OS_UNIX
typedef QHash<QString, Key> NameHash;