Fix compilation

Change-Id: I1cdf177a3f183a330c405abae7232d7a08cc0742
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2023-08-24 14:36:01 +02:00
committed by Christian Kandeler
parent 6c2864bd4b
commit 301112adeb

View File

@@ -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