author | zecke <zecke> | 2003-10-07 13:03:51 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-10-07 13:03:51 (UTC) |
commit | 2ffa87f9e7f7f5c3db3f18880aa1040e870b2ba7 (patch) (side-by-side diff) | |
tree | 05d7a3b407325fe71dce9ea23b817decd0403ea4 | |
parent | 75f35445e9f3ec2f730f779d67f4189296bd9c5e (diff) | |
download | opie-2ffa87f9e7f7f5c3db3f18880aa1040e870b2ba7.zip opie-2ffa87f9e7f7f5c3db3f18880aa1040e870b2ba7.tar.gz opie-2ffa87f9e7f7f5c3db3f18880aa1040e870b2ba7.tar.bz2 |
use OPIE_NEW_MALLOC as well
-rw-r--r-- | x11/libqpe-x11/qpe/qpeapplication.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/x11/libqpe-x11/qpe/qpeapplication.cpp b/x11/libqpe-x11/qpe/qpeapplication.cpp index eb01e50..0a98481 100644 --- a/x11/libqpe-x11/qpe/qpeapplication.cpp +++ b/x11/libqpe-x11/qpe/qpeapplication.cpp @@ -726,65 +726,65 @@ void QPEApplication::prepareForTermination( bool willrestart ) sleep( 1 ); // You have 1 second to comply. #endif } int QPEApplication::x11ClientMessage(QWidget* w, XEvent* event, bool b ) { qWarning("X11 ClientMessage %d %d", event->type, ClientMessage); if ( event->type == ClientMessage ) { if ( (event->xclient.message_type == d->wm_protocols) && (event->xclient.data.l[0] == d->wm_context_accept ) ) { qWarning("accepted!!!"); /* * I'm not sure if we should use activeWidget * or activeModalWidget * a QDialog could be not modal too */ if ( w->inherits("QDialog" ) ) { qWarning("inherits QDialog!!!"); QDialog* dia = (QDialog*)w; /* * call it directly or via QTimer::singleShot? */ QTimer::singleShot(0, dia, SLOT(accept() ) ); return 0; } } } return QApplication::x11ClientMessage(w, event, b ); } #define KeyPress XKeyPress #define KeyRelease XKeyRelease -#if defined(QT_QWS_IPAQ) || defined(QT_QWS_SL5XXX) +#if defined(OPIE_NEW_MALLOC) // The libraries with the skiff package (and possibly others) have // completely useless implementations of builtin new and delete that // use about 50% of your CPU. Here we revert to the simple libc // functions. void* operator new[]( size_t size ) { return malloc( size ); } void* operator new( size_t size ) { return malloc( size ); } void operator delete[]( void* p ) { free( p ); } void operator delete[]( void* p, size_t /*size*/ ) { free( p ); } void operator delete( void* p ) { free( p ); } void operator delete( void* p, size_t /*size*/ ) |