From 6b1e8a3c434e9692257f21801c332a30dc2d5d48 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 6 Jul 2015 10:01:01 +0200 Subject: prevent redefinition error by qt moc --- opentrack/camera-names.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'opentrack/camera-names.hpp') diff --git a/opentrack/camera-names.hpp b/opentrack/camera-names.hpp index 3d3948fa..6f82ba34 100644 --- a/opentrack/camera-names.hpp +++ b/opentrack/camera-names.hpp @@ -13,6 +13,7 @@ # include #endif +template QList get_camera_names() { QList ret; #if defined(_WIN32) @@ -82,6 +83,7 @@ QList get_camera_names() { return ret; } +template int camera_name_to_index(const QString &name) { auto list = get_camera_names(); -- cgit v1.2.3