diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-30 17:33:32 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-30 17:33:32 +0100 |
commit | 6775efddecffc2be4a9eaeea2d844183d9271f99 (patch) | |
tree | e279e11b33dedf66210423d6f782cc3ac62d2f0c | |
parent | 677af1c2c3ec44766764d6c72e16d319c02de6ff (diff) |
pass -Wall -Wextra -pedantic, add #pragma once
-rw-r--r-- | ftnoir_tracker_rift/ftnoir_tracker_rift.cpp | 2 | ||||
-rw-r--r-- | ftnoir_tracker_rift/ftnoir_tracker_rift.h | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp index 965e849b..7d567ca3 100644 --- a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp +++ b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp @@ -38,7 +38,7 @@ Rift_Tracker::~Rift_Tracker() -void Rift_Tracker::StartTracker(QFrame* videoFrame) +void Rift_Tracker::StartTracker(QFrame*) { loadSettings(); // diff --git a/ftnoir_tracker_rift/ftnoir_tracker_rift.h b/ftnoir_tracker_rift/ftnoir_tracker_rift.h index 970a64a2..6be18d0b 100644 --- a/ftnoir_tracker_rift/ftnoir_tracker_rift.h +++ b/ftnoir_tracker_rift/ftnoir_tracker_rift.h @@ -1,9 +1,10 @@ +#pragma once #include "ftnoir_tracker_base/ftnoir_tracker_base.h" #include "ui_ftnoir_rift_clientcontrols.h" #include <QMessageBox> #include <QSettings> #include <QWaitCondition> -#include <math.h> +#include <cmath> #include "facetracknoir/global-settings.h" #include "OVR.h" #include <memory> @@ -13,7 +14,7 @@ public: Rift_Tracker(); virtual ~Rift_Tracker(); - void StartTracker( QFrame *videoframe ); + void StartTracker(QFrame *); bool GiveHeadPoseData(double *data); void loadSettings(); volatile bool should_quit; @@ -48,7 +49,7 @@ public: void showEvent ( QShowEvent * event ); void Initialize(QWidget *parent); - void registerTracker(ITracker *tracker) {} + void registerTracker(ITracker *) {} void unRegisterTracker() {} private: |