diff options
Diffstat (limited to 'src/Message.h')
-rw-r--r-- | src/Message.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Message.h b/src/Message.h index 94a07ef67..ac53df5bf 100644 --- a/src/Message.h +++ b/src/Message.h @@ -69,6 +69,10 @@ inline QString u8(const ::std::string &str) { return QString::fromUtf8(str.data(), str.length()); } +inline QString u8(const ::std::wstring &str) { + return QString::fromStdWString(str); +} + inline ::std::string u8(const QString &str) { const QByteArray &qba = str.toUtf8(); return ::std::string(qba.constData(), qba.length()); |