From cb38011818063ac2b28fb09c9e34b2fc3a558988 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 10 Jun 2015 19:02:48 +0200 Subject: pt: issue with duplicate symbols on including dshow.h in two files Let's work around it by including dshow.h in only one file --- ftnoir_tracker_pt/ftnoir_tracker_pt.cpp | 3 ++- opentrack/camera-names.hpp | 3 --- 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 #include #include @@ -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 #endif -// template to allow compiler coalesce function at linking with multiple definitions -template QList get_camera_names() { QList ret; #if defined(_WIN32) @@ -84,7 +82,6 @@ QList get_camera_names() { return ret; } -template int camera_name_to_index(const QString &name) { auto list = get_camera_names(); -- cgit v1.2.3