summaryrefslogtreecommitdiffhomepage
path: root/opentrack/state.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-29 01:09:49 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-10-29 01:09:49 +0100
commite29f9b9b1ede2967031255a7bd23625aedc493c3 (patch)
treedfb9ce531ec84db3b251d15bfa800d05abfef272 /opentrack/state.hpp
parenta084a26275c1b5b0ddc5547ed230fa0b244598d6 (diff)
work around global 'ptr' symbol clash with opencv
Issue: #89 Reported-by: @runningman84
Diffstat (limited to 'opentrack/state.hpp')
-rw-r--r--opentrack/state.hpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/opentrack/state.hpp b/opentrack/state.hpp
index 7fde64dc..c8d97d16 100644
--- a/opentrack/state.hpp
+++ b/opentrack/state.hpp
@@ -12,18 +12,18 @@ struct Modules {
tracker_modules(filter(dylib::Tracker)),
protocol_modules(filter(dylib::Protocol))
{}
- QList<ptr<dylib>>& filters() { return filter_modules; }
- QList<ptr<dylib>>& trackers() { return tracker_modules; }
- QList<ptr<dylib>>& protocols() { return protocol_modules; }
+ QList<mem<dylib>>& filters() { return filter_modules; }
+ QList<mem<dylib>>& trackers() { return tracker_modules; }
+ QList<mem<dylib>>& protocols() { return protocol_modules; }
private:
- QList<ptr<dylib>> module_list;
- QList<ptr<dylib>> filter_modules;
- QList<ptr<dylib>> tracker_modules;
- QList<ptr<dylib>> protocol_modules;
+ QList<mem<dylib>> module_list;
+ QList<mem<dylib>> filter_modules;
+ QList<mem<dylib>> tracker_modules;
+ QList<mem<dylib>> protocol_modules;
- QList<ptr<dylib>> filter(dylib::Type t)
+ QList<mem<dylib>> filter(dylib::Type t)
{
- QList<ptr<dylib>> ret;
+ QList<mem<dylib>> ret;
for (auto x : module_list)
if (x->type == t)
ret.push_back(x);
@@ -44,5 +44,5 @@ struct State {
pbundle b;
main_settings s;
Mappings pose;
- ptr<Work> work;
+ mem<Work> work;
};