summaryrefslogtreecommitdiffhomepage
path: root/proto-ft
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-06-14 11:41:43 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-14 18:14:46 +0200
commit81b09254eeb8970394cd564132d1d76fec687057 (patch)
treea10126b6474d46e1aac72e91d2279944e1c56f82 /proto-ft
parent2b02600171a88afa0c7ffdfa06ba61395df99341 (diff)
csv: code quality fixes
- use std::move where applicable - reformat more - make const stuff static, use QStringLiteral - fix regexes to make progress more - always move further into file even if regexes fail - apply less defensive coding, but still enough - remove stuff we don't use
Diffstat (limited to 'proto-ft')
-rw-r--r--proto-ft/ftnoir_protocol_ft.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/proto-ft/ftnoir_protocol_ft.cpp b/proto-ft/ftnoir_protocol_ft.cpp
index 0e1739cd..ccec3db0 100644
--- a/proto-ft/ftnoir_protocol_ft.cpp
+++ b/proto-ft/ftnoir_protocol_ft.cpp
@@ -76,9 +76,12 @@ void FTNoIR_Protocol::pose(const double* headpose) {
{
QString gamename;
{
- unsigned char table[8];
- if (CSV::getGameData(id, table, gamename))
- for (int i = 0; i < 8; i++) pMemData->table[i] = table[i];
+ unsigned char table[8] = { 0,0,0,0, 0,0,0,0 };
+
+ (void) CSV::getGameData(id, table, gamename);
+
+ for (int i = 0; i < 8; i++)
+ pMemData->table[i] = table[i];
}
ft->GameID2 = id;
intGameID = id;