summaryrefslogtreecommitdiffstats
path: root/examples/activeqt/dotnet/wrapper/lib/tools.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/activeqt/dotnet/wrapper/lib/tools.cpp')
-rw-r--r--examples/activeqt/dotnet/wrapper/lib/tools.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/activeqt/dotnet/wrapper/lib/tools.cpp b/examples/activeqt/dotnet/wrapper/lib/tools.cpp
index 856b5c861..eac2d7810 100644
--- a/examples/activeqt/dotnet/wrapper/lib/tools.cpp
+++ b/examples/activeqt/dotnet/wrapper/lib/tools.cpp
@@ -56,6 +56,6 @@ String *QStringToString(const QString &qstring)
QString StringToQString(String *string)
{
const wchar_t __pin *chars = PtrToStringChars(string);
- return QString::fromUtf16((const ushort *)chars);
+ return QString::fromWCharArray(chars);
}
//! [1]