ConfigType: Use ConfigItem::IsAbstract() to check if items are abstract.

This commit is contained in:
Gunnar Beutner 2013-03-11 13:05:32 +01:00
parent 6f51230a79
commit 4bb808e0fa
2 changed files with 1 additions and 4 deletions

View File

@ -18,9 +18,6 @@
******************************************************************************/ ******************************************************************************/
type DynamicObject { type DynamicObject {
%require "__abstract",
%attribute number "__abstract",
%require "__local", %require "__local",
%attribute number "__local", %attribute number "__local",

View File

@ -55,7 +55,7 @@ void ConfigType::ValidateItem(const ConfigItem::Ptr& item) const
Dictionary::Ptr attrs = item->Link(); Dictionary::Ptr attrs = item->Link();
/* Don't validate abstract items. */ /* Don't validate abstract items. */
if (attrs->Get("__abstract")) if (item->IsAbstract())
return; return;
vector<String> locations; vector<String> locations;