From 4bb808e0fa8f6e0ce1b25f4914c68e67a73dce37 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 11 Mar 2013 13:05:32 +0100 Subject: [PATCH] ConfigType: Use ConfigItem::IsAbstract() to check if items are abstract. --- itl/types.conf | 3 --- lib/config/configtype.cpp | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/itl/types.conf b/itl/types.conf index 3db61c0f8..1a7d358dd 100644 --- a/itl/types.conf +++ b/itl/types.conf @@ -18,9 +18,6 @@ ******************************************************************************/ type DynamicObject { - %require "__abstract", - %attribute number "__abstract", - %require "__local", %attribute number "__local", diff --git a/lib/config/configtype.cpp b/lib/config/configtype.cpp index 669269c80..9d8620fcd 100644 --- a/lib/config/configtype.cpp +++ b/lib/config/configtype.cpp @@ -55,7 +55,7 @@ void ConfigType::ValidateItem(const ConfigItem::Ptr& item) const Dictionary::Ptr attrs = item->Link(); /* Don't validate abstract items. */ - if (attrs->Get("__abstract")) + if (item->IsAbstract()) return; vector locations; -- 2.40.0