diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-05-13 16:54:14 +0200 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-08-21 15:03:07 +0200 |
commit | 48d4baca5becf0966ad02f3f316cd9894ef6d5c3 (patch) | |
tree | f45d3877010d2b106887095ba4265ca591779eba /src/corelib/io/qprocess_p.h | |
parent | 0375a941dcd45b71a9397dbd405c9c055ab9a81a (diff) |
Execute some small performance improvements in QProcessEnvironment
If d == 0, then we know we have no items. Therefore, removing or
clearing is an idempotent action. So instead of detaching, leave d == 0.
In the search function, avoid converting the defaultValue to the
internal representation.
Diffstat (limited to 'src/corelib/io/qprocess_p.h')
-rw-r--r-- | src/corelib/io/qprocess_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/io/qprocess_p.h b/src/corelib/io/qprocess_p.h index 1e2979b7ae..b581e913cb 100644 --- a/src/corelib/io/qprocess_p.h +++ b/src/corelib/io/qprocess_p.h @@ -86,7 +86,8 @@ public: #else typedef QByteArray Unit; #endif - QHash<Unit, Unit> hash; + typedef QHash<Unit, Unit> Hash; + Hash hash; static QProcessEnvironment fromList(const QStringList &list); QStringList toList() const; |