summaryrefslogtreecommitdiffstats
path: root/src/s60main/qts60main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/s60main/qts60main.cpp')
-rw-r--r--src/s60main/qts60main.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/s60main/qts60main.cpp b/src/s60main/qts60main.cpp
index 5fbeea5..7b85901 100644
--- a/src/s60main/qts60main.cpp
+++ b/src/s60main/qts60main.cpp
@@ -41,7 +41,7 @@
// INCLUDE FILES
#include <exception> // must be before e32base.h so uncaught_exception gets defined
#include <e32base.h>
-#include <qglobal.h>
+#include <string>
GLDEF_C TInt QtMainWrapper();
@@ -51,7 +51,9 @@ GLDEF_C TInt QtMainWrapper();
*/
GLDEF_C TInt E32Main()
{
- CTrapCleanup *cleanupStack = q_check_ptr(CTrapCleanup::New());
+ CTrapCleanup *cleanupStack = CTrapCleanup::New();
+ if (!(cleanupStack))
+ throw std::bad_alloc();
TInt err = 0;
TRAP(err, err = QtMainWrapper());
delete cleanupStack;