Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Message.h')
-rw-r--r--src/Message.h4
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());