Skip to content

Commit 16dba88

Browse files
author
nitrocaster
committed
Fix conventions.
1 parent e6c0300 commit 16dba88

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/xrCore/Threading/Lock.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ class XRCORE_API Lock
2020
{
2121
public:
2222
#ifdef CONFIG_PROFILE_LOCKS
23-
Lock(const char *id) : isLocked(false), id(id) { }
23+
Lock(const char *id) : isLocked(false), id(id) {}
2424
#else
25-
Lock() : isLocked(false) { }
25+
Lock() : isLocked(false) {}
2626
#endif
2727

2828
Lock(const Lock &) = delete;
@@ -42,9 +42,7 @@ class XRCORE_API Lock
4242
{
4343
bool locked = mutex.try_lock();
4444
if (locked)
45-
{
4645
isLocked = true;
47-
}
4846
return locked;
4947
}
5048

0 commit comments

Comments
 (0)