From 0bbb1ad9abb850b6ef77fd52e7b030dc81748165 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Mon, 2 May 2011 14:36:45 +0200 Subject: [PATCH] QmlProfiler: Fix MSVC warning about character encoding MSVC on some system might complain "C4566: character represented by universal-character-name '\u03BCs' cannot be represented in the current code page". Fix this by forcing the string to be wchar_t based. --- src/plugins/qmlprofiler/qmlprofilersummaryview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmlprofiler/qmlprofilersummaryview.cpp b/src/plugins/qmlprofiler/qmlprofilersummaryview.cpp index 723f063566..4b15536011 100644 --- a/src/plugins/qmlprofiler/qmlprofilersummaryview.cpp +++ b/src/plugins/qmlprofiler/qmlprofilersummaryview.cpp @@ -258,7 +258,7 @@ void QmlProfilerSummaryView::appendRow(const QString &displayName, QString QmlProfilerSummaryView::displayTime(double time) const { if (time<1e6) - return QString::number(time/1e3,'f',3) + QString::fromUtf8(" \u03BCs");//(" \u03BCs"); + return QString::number(time/1e3,'f',3) + QString::fromWCharArray(L" \u03BCs"); if (time<1e9) return QString::number(time/1e6,'f',3) + QLatin1String(" ms"); -- 2.11.0