mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
fix some compiler warnings in benchmarks
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
45f8120062
commit
34977cba8a
3 changed files with 5 additions and 5 deletions
|
@ -129,7 +129,7 @@ void tst_QTextCodec::fromUnicode_data() const
|
|||
void tst_QTextCodec::fromUnicode() const
|
||||
{
|
||||
QFETCH(QTextCodec*, codec);
|
||||
QFile file(SRCDIR "utf-8.txt");
|
||||
QFile file(QLatin1String(SRCDIR "utf-8.txt"));
|
||||
if (!file.open(QFile::ReadOnly)) {
|
||||
qFatal("Cannot open input file");
|
||||
return;
|
||||
|
@ -156,7 +156,7 @@ void tst_QTextCodec::toUnicode_data() const
|
|||
void tst_QTextCodec::toUnicode() const
|
||||
{
|
||||
QFETCH(QTextCodec*, codec);
|
||||
QFile file(SRCDIR "utf-8.txt");
|
||||
QFile file(QLatin1String(SRCDIR "utf-8.txt"));
|
||||
QVERIFY(file.open(QFile::ReadOnly));
|
||||
QByteArray data = file.readAll();
|
||||
const char *d = data.constData();
|
||||
|
|
|
@ -1414,7 +1414,7 @@ void tst_QString::ucstrncmp() const
|
|||
|
||||
void tst_QString::fromUtf8() const
|
||||
{
|
||||
QFile file(SRCDIR "utf-8.txt");
|
||||
QFile file(QLatin1String(SRCDIR "utf-8.txt"));
|
||||
if (!file.open(QFile::ReadOnly)) {
|
||||
qFatal("Cannot open input file");
|
||||
return;
|
||||
|
|
|
@ -91,7 +91,7 @@ int main(int argc, char *argv[])
|
|||
view.setViewport(glWidget);
|
||||
view.show();
|
||||
|
||||
view.setSource(QUrl::fromLocalFile("TestWater.qml"));
|
||||
view.setSource(QUrl::fromLocalFile(QLatin1String("TestWater.qml")));
|
||||
BenchmarkItem *benchmarkItem;
|
||||
|
||||
qDebug() << "Sea Water benchmark:";
|
||||
|
@ -101,7 +101,7 @@ int main(int argc, char *argv[])
|
|||
qDebug() << "Average " << benchmarkItem->frameCount() / 5.0 << " frames per second";
|
||||
|
||||
qDebug() << "Gaussian drop shadow benchmark:";
|
||||
view.setSource(QUrl::fromLocalFile("TestGaussianDropShadow.qml"));
|
||||
view.setSource(QUrl::fromLocalFile(QLatin1String("TestGaussianDropShadow.qml")));
|
||||
benchmarkItem = new BenchmarkItem(dynamic_cast<QDeclarativeItem *>(view.rootObject()));
|
||||
QTest::qWait(5000);
|
||||
qDebug() << "Rendered " << benchmarkItem->frameCount() << " frames in 5 seconds";
|
||||
|
|
Loading…
Add table
Reference in a new issue