Utils: Fix Guard documentation

Change-Id: I18a23c4410424f3799b9ec5bcacccac742713c63
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Orgad Shaneh
2016-10-22 20:40:35 +03:00
committed by Orgad Shaneh
parent d6c8a97429
commit 631211f7e2

View File

@@ -66,7 +66,7 @@
\code
void MyClass::otherObjectUpdated()
{
if (updateGuard.isLocked)
if (updateGuard.isLocked())
return;
// we didn't trigger the update
@@ -75,7 +75,7 @@
}
\endcode
The GuardLock unlocks the Guard in it's destructor.
The GuardLocker unlocks the Guard in its destructor.
The Guard object is recursive, you may declare many GuardLocker
objects for the same Guard instance and the Guard will be locked