From be76c09981eab137abda0e855aa0aa4e5d11a2e7 Mon Sep 17 00:00:00 2001 From: liangqi Date: Fri, 22 Jul 2011 14:19:44 +0200 Subject: [PATCH] Use QUuid::toByteArray() instead of QUuid::toString().toAscii() This is a cheaper way. Change-Id: Ibfc67e0ac46a77e95b2ef32cd6f28c7409c42d63 Reviewed-on: http://codereview.qt.nokia.com/2037 Reviewed-by: Qt Sanity Bot Reviewed-by: Liang Qi --- src/gui/text/qrawfont_ft.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/text/qrawfont_ft.cpp b/src/gui/text/qrawfont_ft.cpp index d9225ff896..984efdbcef 100644 --- a/src/gui/text/qrawfont_ft.cpp +++ b/src/gui/text/qrawfont_ft.cpp @@ -88,7 +88,7 @@ public: FaceId faceId; faceId.filename = ""; faceId.index = 0; - faceId.uuid = QUuid::createUuid().toString().toAscii(); + faceId.uuid = QUuid::createUuid().toByteArray(); return init(faceId, true, Format_None, fontData); }