diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-27 18:52:37 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-27 18:52:37 +0200 |
commit | 5fdf8b92e78b2a5690ba0e9642c0d68d8b2e4495 (patch) | |
tree | 6a4cab7baf5311fd1e869de329b51514a88aff53 /ftnoir_protocol_ft | |
parent | f44108df519d4aae5caa0bce62c9f54ca5b8c47a (diff) |
Fix embarassing locking but propagated through the codebase :(
Diffstat (limited to 'ftnoir_protocol_ft')
-rw-r--r-- | ftnoir_protocol_ft/ftnoir_protocol_ft.cpp | 2 | ||||
-rw-r--r-- | ftnoir_protocol_ft/ftnoir_protocol_ft.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp b/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp index 9c3c8461..6b67fd38 100644 --- a/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp +++ b/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp @@ -211,7 +211,7 @@ float headRotZ; start_dummy();
pMemData->GameID2 = pMemData->GameID;
intGameID = pMemData->GameID;
- QMutexLocker((QMutex*)&this->game_name_mutex);
+ QMutexLocker foo(&this->game_name_mutex);
connected_game = gamename;
}
diff --git a/ftnoir_protocol_ft/ftnoir_protocol_ft.h b/ftnoir_protocol_ft/ftnoir_protocol_ft.h index e1e46876..0915a5f3 100644 --- a/ftnoir_protocol_ft/ftnoir_protocol_ft.h +++ b/ftnoir_protocol_ft/ftnoir_protocol_ft.h @@ -60,7 +60,7 @@ public: bool checkServerInstallationOK( );
void sendHeadposeToGame( double *headpose, double *rawheadpose );
QString getGameName() {
- QMutexLocker((QMutex*)&game_name_mutex);
+ QMutexLocker foo(&game_name_mutex);
return connected_game;
}
|