diff options
Diffstat (limited to 'libqtuitest/qalternatestack_unix.cpp')
-rw-r--r-- | libqtuitest/qalternatestack_unix.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/libqtuitest/qalternatestack_unix.cpp b/libqtuitest/qalternatestack_unix.cpp index 93c9167..016102b 100644 --- a/libqtuitest/qalternatestack_unix.cpp +++ b/libqtuitest/qalternatestack_unix.cpp @@ -38,6 +38,7 @@ ** $QT_END_LICENSE$ ** ****************************************************************************/ +#undef _FORTIFY_SOURCE #include "qalternatestack_p.h" @@ -194,7 +195,7 @@ void qt_entry_function_wrapper(int) Example: \code - void runsInAlternateStack(QAlternateStack* stack, QVariant const& data) + void runsInAlternateStack(QAlternateStack* stack, const QVariant& data) { int foo = data.toInt(); // ... @@ -227,7 +228,7 @@ void qt_entry_function_wrapper(int) \typedef QAlternateStackEntryPoint Typedef for a pointer to a function with the signature - \c{void my_function(QAlternateStack*,QVariant const&)}. + \c{void my_function(QAlternateStack*,const QVariant&)}. Used as an entry point to a new stack. */ @@ -511,9 +512,6 @@ QList<QAlternateStack*> QAlternateStack::instances() /*! Returns true if QAlternateStack is usable on this platform. - QAlternateStack depends on System-V signal stacks, which is not reliable on - some platforms. On these platforms, this function will return false. - Usage of QAlternateStack when this function returns false will typically result in a fatal error at runtime. */ @@ -522,12 +520,6 @@ bool QAlternateStack::isAvailable() #ifdef Q_OS_MAC return false; #endif - -#ifdef QT_QWS_GREENPHONE - // On the Greenphone, it works if and only if the stackbuf has been set up. - return qalternatestack_stackbuf(); -#else return true; -#endif } |