diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-06 10:01:01 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-06 10:01:01 +0200 |
commit | 6b1e8a3c434e9692257f21801c332a30dc2d5d48 (patch) | |
tree | 46f48ef80ad1e4104a99ca8c249fc1e816b72310 /opentrack/camera-names.hpp | |
parent | e3140d0293de8adb584dafe264f5f4024c82ff88 (diff) |
prevent redefinition error by qt moc
Diffstat (limited to 'opentrack/camera-names.hpp')
-rw-r--r-- | opentrack/camera-names.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 <unistd.h> #endif +template<typename = void> QList<QString> get_camera_names() { QList<QString> ret; #if defined(_WIN32) @@ -82,6 +83,7 @@ QList<QString> get_camera_names() { return ret; } +template<typename = void> int camera_name_to_index(const QString &name) { auto list = get_camera_names(); |