From 4fc2f7199e964ba5112ecdb2613c6fd5c2eee638 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sun, 18 Jan 2015 10:40:33 +0100 Subject: Specify which Extensible subclass an ExtensionItem is valid for --- include/modules/cap.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/modules') diff --git a/include/modules/cap.h b/include/modules/cap.h index 1b33e05bb..cc1cb8d8c 100644 --- a/include/modules/cap.h +++ b/include/modules/cap.h @@ -43,7 +43,9 @@ class GenericCap public: LocalIntExt ext; const std::string cap; - GenericCap(Module* parent, const std::string &Cap) : ext("cap_" + Cap, parent), cap(Cap) + GenericCap(Module* parent, const std::string& Cap) + : ext("cap_" + Cap, ExtensionItem::EXT_USER, parent) + , cap(Cap) { } -- cgit v1.2.3