summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ftnoir_tracker_pt/ftnoir_tracker_pt.cpp3
-rw-r--r--opentrack/camera-names.hpp3
2 files changed, 2 insertions, 4 deletions
diff --git a/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp b/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
index c6f14527..b7138f25 100644
--- a/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
+++ b/ftnoir_tracker_pt/ftnoir_tracker_pt.cpp
@@ -6,7 +6,6 @@
*/
#include "ftnoir_tracker_pt.h"
-#include "opentrack/camera-names.hpp"
#include <QHBoxLayout>
#include <cmath>
#include <QDebug>
@@ -129,6 +128,8 @@ void Tracker::run()
qDebug()<<"Tracker:: Thread stopping";
}
+int camera_name_to_index(const QString &name);
+
void Tracker::apply_settings()
{
qDebug()<<"Tracker:: Applying settings";
diff --git a/opentrack/camera-names.hpp b/opentrack/camera-names.hpp
index d6b26493..3d3948fa 100644
--- a/opentrack/camera-names.hpp
+++ b/opentrack/camera-names.hpp
@@ -13,8 +13,6 @@
# include <unistd.h>
#endif
-// template to allow compiler coalesce function at linking with multiple definitions
-template<typename = int>
QList<QString> get_camera_names() {
QList<QString> ret;
#if defined(_WIN32)
@@ -84,7 +82,6 @@ QList<QString> get_camera_names() {
return ret;
}
-template<typename = int>
int camera_name_to_index(const QString &name)
{
auto list = get_camera_names();