mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 05:57:29 +02:00
Remove unused using
This commit is contained in:
parent
96aa5be457
commit
503e03d4a8
1 changed files with 2 additions and 8 deletions
|
@ -16,13 +16,7 @@
|
||||||
#include <QtCore/QDebug>
|
#include <QtCore/QDebug>
|
||||||
#include <QtCore/QLibrary>
|
#include <QtCore/QLibrary>
|
||||||
|
|
||||||
using std::string;
|
static std::unique_ptr<QLibrary> SIXENSE;
|
||||||
using std::unique_ptr;
|
|
||||||
using SixenseBaseFunction = int (*)();
|
|
||||||
using SixenseTakeIntFunction = int (*)(int);
|
|
||||||
using SixenseTakeIntAndSixenseControllerData = int (*)(int, sixenseControllerData*);
|
|
||||||
|
|
||||||
static unique_ptr<QLibrary> SIXENSE;
|
|
||||||
|
|
||||||
void loadSixense() {
|
void loadSixense() {
|
||||||
if (!SIXENSE) {
|
if (!SIXENSE) {
|
||||||
|
@ -51,7 +45,7 @@ template<typename... Args>
|
||||||
int call(const char* name, Args... args) {
|
int call(const char* name, Args... args) {
|
||||||
Q_ASSERT_X(SIXENSE && SIXENSE->isLoaded(), __FUNCTION__, "Sixense library not loaded");
|
Q_ASSERT_X(SIXENSE && SIXENSE->isLoaded(), __FUNCTION__, "Sixense library not loaded");
|
||||||
auto func = reinterpret_cast<int(*)(Args...)>(SIXENSE->resolve(name));
|
auto func = reinterpret_cast<int(*)(Args...)>(SIXENSE->resolve(name));
|
||||||
Q_ASSERT_X(func, __FUNCTION__, string("Could not resolve ").append(name).c_str());
|
Q_ASSERT_X(func, __FUNCTION__, std::string("Could not resolve ").append(name).c_str());
|
||||||
return func(args...);
|
return func(args...);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue