summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2010-08-17 14:36:17 (GMT)
committerJoão Abecasis <joao.abecasis@nokia.com>2010-08-17 17:19:40 (GMT)
commit45e5a8f65cff46088608eff55196693c48502651 (patch)
tree86a6a226af1fbfbd88dff1d204214e4b06dcbb20 /src
parentf7dd01f5dfb46bffee919fa50193f895fe7a4a83 (diff)
downloadQt-45e5a8f65cff46088608eff55196693c48502651.zip
Qt-45e5a8f65cff46088608eff55196693c48502651.tar.gz
Qt-45e5a8f65cff46088608eff55196693c48502651.tar.bz2
Q_CHECK_PTR should issue qFatal with QT_NO_EXCEPTIONS
Allowing the null pointer to propagate seems to be a bigger evil and could potentially become a security risk. Task-number: QT-3785 Reviewed-by: Peter Hartmann Reviewed-by: Olivier Goffart Reviewed-by: Thiago Macieira
Diffstat (limited to 'src')
-rw-r--r--src/corelib/global/qglobal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp
index af35316..b782c9e 100644
--- a/src/corelib/global/qglobal.cpp
+++ b/src/corelib/global/qglobal.cpp
@@ -1984,7 +1984,7 @@ QSysInfo::SymbianVersion QSysInfo::symbianVersion()
*/
void qt_check_pointer(const char *n, int l)
{
- qWarning("In file %s, line %d: Out of memory", n, l);
+ qFatal("In file %s, line %d: Out of memory", n, l);
}
/* \internal