fixed android setup

added missing c++11 methods
This commit is contained in:
kazu
2016-07-15 15:49:58 +02:00
parent b188cb992c
commit 719a66937e
12 changed files with 86 additions and 44 deletions

View File

@@ -1,5 +1,5 @@
#ifndef ACCELEROMETERSENSOR_H
#define ACCELEROMETERSENSOR_H
#ifndef ACCELEROMETERSENSORANDROID_H
#define ACCELEROMETERSENSORANDROID_H
#ifdef ANDROID
@@ -10,7 +10,7 @@
#include <QtSensors/QAccelerometer>
#include "../AccelerometerSensor.h"
class AccelerometerSensorAndroid : public AccelerometerSensor {
@@ -26,8 +26,8 @@ private:
public:
/** singleton access */
static AccelerometerSensor& get() {
static AccelerometerSensor acc;
static AccelerometerSensorAndroid& get() {
static AccelerometerSensorAndroid acc;
return acc;
}
@@ -44,12 +44,13 @@ public:
}
void stop() override {
throw "todo";
throw "TODO";
}
};
#endif ANDROID
#endif // ACCELEROMETERSENSOR_H
#endif // ACCELEROMETERSENSORANDROID_H