Fix memcheck test compiler warnings.

Merge-request: 284
Reviewed-by: hjk <qtc-committer@nokia.com>
This commit is contained in:
Mike McQuaid
2011-04-04 14:39:28 +02:00
committed by hjk
parent d67d69e36a
commit 7554105eee
3 changed files with 10 additions and 10 deletions

View File

@@ -2,6 +2,6 @@
int main()
{
qint64 *i = new qint64;
new qint64;
return 0;
}

View File

@@ -11,7 +11,7 @@ struct Foo
int main()
{
Foo *f = new Foo;
new Foo;
return 0;
}

View File

@@ -264,7 +264,7 @@ void TestRunner::testLeak4()
{
const Frame frame = stack.frames().at(2);
QCOMPARE(frame.functionName(), QString("main"));
QCOMPARE(frame.line(), 13);
QCOMPARE(frame.line(), 14);
QCOMPARE(frame.object(), binary);
QCOMPARE(frame.file(), QLatin1String("main.cpp"));
@@ -272,8 +272,8 @@ void TestRunner::testLeak4()
}
{
const Frame frame = stack.frames().at(1);
QCOMPARE(frame.functionName(), QString("foo::foo()"));
QCOMPARE(frame.line(), 5);
QCOMPARE(frame.functionName(), QString("Foo::Foo()"));
QCOMPARE(frame.line(), 6);
QCOMPARE(frame.object(), binary);
QCOMPARE(frame.file(), QLatin1String("main.cpp"));
@@ -282,7 +282,7 @@ void TestRunner::testLeak4()
{
const Frame frame = stack.frames().at(2);
QCOMPARE(frame.functionName(), QString("main"));
QCOMPARE(frame.line(), 13);
QCOMPARE(frame.line(), 14);
QCOMPARE(frame.object(), binary);
QCOMPARE(frame.file(), QLatin1String("main.cpp"));
@@ -306,7 +306,7 @@ void TestRunner::testLeak4()
{
const Frame frame = stack.frames().at(1);
QCOMPARE(frame.functionName(), QString("main"));
QCOMPARE(frame.line(), 13);
QCOMPARE(frame.line(), 14);
QCOMPARE(frame.object(), binary);
QCOMPARE(frame.file(), QLatin1String("main.cpp"));
@@ -444,7 +444,7 @@ void TestRunner::uninit3()
const Frame frame = stack.frames().first();
QCOMPARE(frame.functionName(), QString("main"));
QCOMPARE(frame.line(), 3);
QCOMPARE(frame.line(), 4);
QCOMPARE(frame.object(), binary);
QCOMPARE(frame.file(), QLatin1String("main.cpp"));
@@ -458,7 +458,7 @@ void TestRunner::uninit3()
const Frame frame = stack.frames().first();
QCOMPARE(frame.functionName(), QString("main"));
QCOMPARE(frame.line(), 1);
QCOMPARE(frame.line(), 2);
QCOMPARE(frame.object(), binary);
QCOMPARE(frame.file(), QLatin1String("main.cpp"));
@@ -477,7 +477,7 @@ void TestRunner::uninit3()
const Frame frame = stack.frames().first();
QCOMPARE(frame.functionName(), QString("main"));
QCOMPARE(frame.line(), 3);
QCOMPARE(frame.line(), 4);
QCOMPARE(frame.object(), binary);
QCOMPARE(frame.file(), QLatin1String("main.cpp"));