diff options
author | Frans Englich <frans.englich@nokia.com> | 2009-08-20 13:17:33 (GMT) |
---|---|---|
committer | Frans Englich <frans.englich@nokia.com> | 2009-08-20 13:17:33 (GMT) |
commit | a19377ede0b089022544413b590fa8025c737ccb (patch) | |
tree | 8bcd6c4a754cb9d7e458c052377b876a878601b8 | |
parent | 612da33a9e09d5dba2e84383b9f26fbfed49303b (diff) | |
download | Qt-a19377ede0b089022544413b590fa8025c737ccb.zip Qt-a19377ede0b089022544413b590fa8025c737ccb.tar.gz Qt-a19377ede0b089022544413b590fa8025c737ccb.tar.bz2 |
Cleanup code.
-rw-r--r-- | tests/auto/qsharedmemory/tst_qsharedmemory.cpp | 11 |
1 files 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(); } |