diff --git a/wst/trunk/ws_helper/ws_parser_imp.pas b/wst/trunk/ws_helper/ws_parser_imp.pas index a2f7bca52..79d4bcbe8 100644 --- a/wst/trunk/ws_helper/ws_parser_imp.pas +++ b/wst/trunk/ws_helper/ws_parser_imp.pas @@ -256,7 +256,6 @@ begin if not AEltNode.HasChildNodes() then begin; raise EXsdParserException.Create('Invalid type definition, this element must have children.'); end; - Result := nil; typName := ATypeName; if IsStrEmpty(typName) then begin typName := ExtractTypeName(); diff --git a/wst/trunk/wst_delphi_rtti_utils.pas b/wst/trunk/wst_delphi_rtti_utils.pas index b4862744e..0470412b1 100644 --- a/wst/trunk/wst_delphi_rtti_utils.pas +++ b/wst/trunk/wst_delphi_rtti_utils.pas @@ -12,7 +12,6 @@ function GetEnumNameCount(AEnumTypeInfo: PTypeInfo): Integer; var T: PTypeData; begin - Result := 0; T := GetTypeData(AEnumTypeInfo); Result := ( T^.MaxValue - T^.MinValue ) + 1; end;