summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_ft
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-04-27 18:52:37 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-04-27 18:52:37 +0200
commit5fdf8b92e78b2a5690ba0e9642c0d68d8b2e4495 (patch)
tree6a4cab7baf5311fd1e869de329b51514a88aff53 /ftnoir_protocol_ft
parentf44108df519d4aae5caa0bce62c9f54ca5b8c47a (diff)
Fix embarassing locking but propagated through the codebase :(
Diffstat (limited to 'ftnoir_protocol_ft')
-rw-r--r--ftnoir_protocol_ft/ftnoir_protocol_ft.cpp2
-rw-r--r--ftnoir_protocol_ft/ftnoir_protocol_ft.h2
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;
}