rtti-controls: removed check for IsValidIdent fo name property

git-svn-id: trunk@11767 -
This commit is contained in:
mattias 2007-08-09 21:26:32 +00:00
parent 4c9036617f
commit 7431e8f800

View File

@ -1645,10 +1645,9 @@ procedure TCustomPropertyLink.SetObjectAndProperty(NewPersistent: TPersistent;
var
AComponent: TComponent;
begin
if (NewPropertyName<>'')
and ((length(NewPropertyName)>254) or (not IsValidIdent(NewPropertyName)))
then
raise Exception('TCustomPropertyLink.SetObjectAndProperty invalid identifier "'+NewPropertyName+'"');
// Note: checking for IsValidIdent is not needed, because
// an identifier is is only needed for streaming. So every string as Name is
// allowed.
if (NewPersistent<>TIObject) or (NewPropertyName<>TIPropertyName) then begin
FPropertyLoaded:=false;
if (FTIObject is TComponent) then begin