mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-13 22:27:13 +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/QLibrary>
|
||||
|
||||
using std::string;
|
||||
using std::unique_ptr;
|
||||
using SixenseBaseFunction = int (*)();
|
||||
using SixenseTakeIntFunction = int (*)(int);
|
||||
using SixenseTakeIntAndSixenseControllerData = int (*)(int, sixenseControllerData*);
|
||||
|
||||
static unique_ptr<QLibrary> SIXENSE;
|
||||
static std::unique_ptr<QLibrary> SIXENSE;
|
||||
|
||||
void loadSixense() {
|
||||
if (!SIXENSE) {
|
||||
|
@ -51,7 +45,7 @@ template<typename... Args>
|
|||
int call(const char* name, Args... args) {
|
||||
Q_ASSERT_X(SIXENSE && SIXENSE->isLoaded(), __FUNCTION__, "Sixense library not loaded");
|
||||
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...);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue