X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Fqstring_helpers.h;h=206d23948694693c48a5aee242e9f2ce08c307c1;hb=8711df9282463c658c2f1972414161430e7e64d8;hp=9028fad7075ef3d7e3d37fde9904cb12f34e8921;hpb=46e6cacfe0bcfad2f221bb84b642d21b9468a45f;p=lyx.git diff --git a/src/support/qstring_helpers.h b/src/support/qstring_helpers.h index 9028fad707..206d239486 100644 --- a/src/support/qstring_helpers.h +++ b/src/support/qstring_helpers.h @@ -61,7 +61,7 @@ inline QString const toqstr(docstring const & ucs4) { // If possible we let qt do the work, since this version does not // need to be superfast. - return QString::fromUcs4(reinterpret_cast(ucs4.data()), ucs4.length()); + return QString::fromUcs4((uint const *)ucs4.data(), ucs4.length()); } /** @@ -72,7 +72,7 @@ inline QString const toqstr(docstring const & ucs4) */ inline QString const toqstr(char_type ucs4) { - return QString::fromUcs4(reinterpret_cast(&ucs4), 1); + return QString::fromUcs4((uint const *)&ucs4, 1); } /**