From a19377ede0b089022544413b590fa8025c737ccb Mon Sep 17 00:00:00 2001 From: Frans Englich Date: Thu, 20 Aug 2009 15:17:33 +0200 Subject: Cleanup code. --- tests/auto/qsharedmemory/tst_qsharedmemory.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/auto/qsharedmemory/tst_qsharedmemory.cpp b/tests/auto/qsharedmemory/tst_qsharedmemory.cpp index f02e7a3..b92011e 100644 --- a/tests/auto/qsharedmemory/tst_qsharedmemory.cpp +++ b/tests/auto/qsharedmemory/tst_qsharedmemory.cpp @@ -674,7 +674,14 @@ void tst_QSharedMemory::simpleThreadedProducerConsumer() Producer p; #if defined(Q_OS_SYMBIAN) - p.setStackSize(0x14000); + enum + { + /** + * The maximum stack size. + */ + SymbianStackSize = 0x14000 + }; + p.setStackSize(SymbianStackSize); #endif if (producerIsThread) p.start(); @@ -683,7 +690,7 @@ void tst_QSharedMemory::simpleThreadedProducerConsumer() for (int i = 0; i < threads; ++i) { consumers.append(new Consumer()); #if defined(Q_OS_SYMBIAN) - consumers.last()->setStackSize(0x14000); + consumers.last()->setStackSize(SymbianStackSize); #endif consumers.last()->start(); } -- cgit v0.12