resman: use set<> instead of vector<>
[android/external-libkmsxx.git] / kms++util / inc / kms++util / resourcemanager.h
index 002b4c912824bf23301010ad85a00ec7e4d88bf5..1b5cf21ed9e1408798519c01c9c7a3187d2a6f81 100644 (file)
@@ -1,5 +1,5 @@
 #include <kms++/kms++.h>
 #include <kms++/kms++.h>
-#include <vector>
+#include <set>
 #include <string>
 
 namespace kms {
 #include <string>
 
 namespace kms {
@@ -24,9 +24,9 @@ public:
 
 private:
        Card& m_card;
 
 private:
        Card& m_card;
-       std::vector<Connector*> m_reserved_connectors;
-       std::vector<Crtc*> m_reserved_crtcs;
-       std::vector<Plane*> m_reserved_planes;
+       std::set<Connector*> m_reserved_connectors;
+       std::set<Crtc*> m_reserved_crtcs;
+       std::set<Plane*> m_reserved_planes;
 };
 
 }
 };
 
 }