From 81b09254eeb8970394cd564132d1d76fec687057 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 14 Jun 2016 11:41:43 +0200 Subject: 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 --- proto-ft/ftnoir_protocol_ft.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'proto-ft') 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; -- cgit v1.2.3