summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qprocess_p.h
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2011-04-21 19:04:02 +0200
committerOlivier Goffart <olivier.goffart@nokia.com>2011-05-10 12:54:52 +0200
commit299d10549f5aff50cd6211eb3d3e58c17f13be81 (patch)
tree94b945347b16406b13f7730ae28e0e9b2522f583 /src/corelib/io/qprocess_p.h
parent4212ee7ec7f9ac77a4acd0796e56dbdd1e2c7baa (diff)
move key/value converters to the private class
this will enable them to access other members later Reviewed-by: thiago Reviewed-by: dt (cherry picked from commit a2d70d71c8c7652ded41d5d603672c3927df44e6)
Diffstat (limited to 'src/corelib/io/qprocess_p.h')
-rw-r--r--src/corelib/io/qprocess_p.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/corelib/io/qprocess_p.h b/src/corelib/io/qprocess_p.h
index 2d4c55670d..14fc9f32ce 100644
--- a/src/corelib/io/qprocess_p.h
+++ b/src/corelib/io/qprocess_p.h
@@ -95,9 +95,19 @@ public:
};
typedef QString Value;
+
+ inline Key prepareName(const QString &name) const { return Key(name); }
+ inline QString nameToString(const Key &name) const { return name; }
+ inline Value prepareValue(const QString &value) const { return value; }
+ inline QString valueToString(const Value &value) const { return value; }
#else
typedef QByteArray Key;
typedef QByteArray Value;
+
+ inline Key prepareName(const QString &name) const { return name.toLocal8Bit(); }
+ inline QString nameToString(const Key &name) const { return QString::fromLocal8Bit(name); }
+ inline Value prepareValue(const QString &value) const { return value.toLocal8Bit(); }
+ inline QString valueToString(const Value &value) const { return QString::fromLocal8Bit(value); }
#endif
typedef QHash<Key, Value> Hash;