summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2009-08-11 18:30:16 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2009-08-11 18:30:16 (GMT)
commit9605898c99490c9ad2b8cc1eb367d5531a18d1e3 (patch)
treec350df2c811d00116221d122fcae53be88e8118d /doc/src/snippets
parent1c62dc421cf1ae45fe5089674b4d67fd0f1ff529 (diff)
downloadQt-9605898c99490c9ad2b8cc1eb367d5531a18d1e3.zip
Qt-9605898c99490c9ad2b8cc1eb367d5531a18d1e3.tar.gz
Qt-9605898c99490c9ad2b8cc1eb367d5531a18d1e3.tar.bz2
Doc: Fixed code snippets in QReadLocker and QWriteLocker documentation.
Reviewed-by: Trust Me
Diffstat (limited to 'doc/src/snippets')
-rw-r--r--doc/src/snippets/code/src_corelib_thread_qreadwritelock.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/snippets/code/src_corelib_thread_qreadwritelock.cpp b/doc/src/snippets/code/src_corelib_thread_qreadwritelock.cpp
index f0f4935..dd4f533 100644
--- a/doc/src/snippets/code/src_corelib_thread_qreadwritelock.cpp
+++ b/doc/src/snippets/code/src_corelib_thread_qreadwritelock.cpp
@@ -38,9 +38,9 @@ QReadWriteLock lock;
QByteArray readData()
{
- locker.lockForRead();
+ lock.lockForRead();
...
- locker.unlock();
+ lock.unlock();
return data;
}
//! [2]
@@ -62,8 +62,8 @@ QReadWriteLock lock;
void writeData(const QByteArray &data)
{
- locker.lockForWrite();
+ lock.lockForWrite();
...
- locker.unlock();
+ lock.unlock();
}
//! [4]