summaryrefslogtreecommitdiffstats
path: root/src/s60main
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2010-08-18 19:38:55 +0200
committerJoão Abecasis <joao.abecasis@nokia.com>2010-08-19 12:58:35 +0200
commitc6cc767cb065ca77aba06fe15830c22f187e370c (patch)
treee7f17f5fccbd06489c3c29b9dbd0605f850082f7 /src/s60main
parent156d1590b405d1d374b5b8c87f5388718462c5e1 (diff)
Prefer Q_CHECK_PTR to q_check_ptr
With the macro version we get proper debug output (with __FILE__, __LINE__ annotations) when compiling with -no-exceptions and !QT_NO_DEBUG. All changes in this patch affect assignment to local variables, where the order of assignment versus actual pointer check is not important. Reviewed-by: Olivier Goffart
Diffstat (limited to 'src/s60main')
-rw-r--r--src/s60main/qts60main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/s60main/qts60main.cpp b/src/s60main/qts60main.cpp
index 5fbeea5479..c65344bf65 100644
--- a/src/s60main/qts60main.cpp
+++ b/src/s60main/qts60main.cpp
@@ -51,7 +51,8 @@ GLDEF_C TInt QtMainWrapper();
*/
GLDEF_C TInt E32Main()
{
- CTrapCleanup *cleanupStack = q_check_ptr(CTrapCleanup::New());
+ CTrapCleanup *cleanupStack = CTrapCleanup::New();
+ Q_CHECK_PTR(cleanupStack);
TInt err = 0;
TRAP(err, err = QtMainWrapper());
delete cleanupStack;