forked from qt-creator/qt-creator
Fix compilation
Change-Id: I1cdf177a3f183a330c405abae7232d7a08cc0742 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -17,12 +17,14 @@ namespace Utils {
|
||||
using Key = QByteArray;
|
||||
|
||||
inline Key keyFromString(const QString &str) { return str.toUtf8(); }
|
||||
inline QString stringFromKey(const Key &key) { return QString::fromUtf8(key); }
|
||||
|
||||
#else
|
||||
|
||||
using Key = QString;
|
||||
|
||||
inline Key keyFromString(const QString &str) { return str; }
|
||||
inline QString stringFromKey(const Key &key) { return key; }
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user