diff options
author | hjk <qtc-committer@nokia.com> | 2010-06-11 13:44:18 +0200 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2010-06-14 10:45:10 +0200 |
commit | 628cf52f9440b774eef3dcf1d957163bbd9e4853 (patch) | |
tree | 11e7021a941cb27be1848331d542e67b1f665b38 /tests | |
parent | e42ca194c53b8286447c7750feb8c7497c88e698 (diff) | |
download | qt-creator-628cf52f9440b774eef3dcf1d957163bbd9e4853.tar.gz |
debugger: add an option to filter out locals for easier debugger debugging
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/gdbdebugger/simple/app.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/manual/gdbdebugger/simple/app.cpp b/tests/manual/gdbdebugger/simple/app.cpp index 3c8eb1a1ee..3acb3a1405 100644 --- a/tests/manual/gdbdebugger/simple/app.cpp +++ b/tests/manual/gdbdebugger/simple/app.cpp @@ -856,7 +856,7 @@ void testQSharedPointer() { //Employee e1(1, "Herbert"); //Employee e2 = e1; - +#if 0 QSharedPointer<int> iptr(new int(43)); QSharedPointer<int> iptr2 = iptr; QSharedPointer<int> iptr3 = iptr; @@ -872,6 +872,12 @@ void testQSharedPointer() QWeakPointer<QString> wptr(ptr); QWeakPointer<QString> wptr2 = wptr; QWeakPointer<QString> wptr3 = wptr; +#endif + + QSharedPointer<Foo> fptr(new Foo(1)); + QWeakPointer<Foo> wfptr(fptr); + QWeakPointer<Foo> wfptr2 = wfptr; + QWeakPointer<Foo> wfptr3 = wfptr; } #endif @@ -1669,6 +1675,7 @@ void testStuff() { FooVector const &f = fooVector(); int i = f.size(); + Q_UNUSED(i); } void testPassByReferenceHelper(Foo &f) @@ -1731,6 +1738,7 @@ void testQSettings() QSettings settings("/tmp/test.ini", QSettings::IniFormat); QVariant value = settings.value("item1","").toString(); int x = 1; + Q_UNUSED(x); } int main(int argc, char *argv[]) |