[tools 2/2] testbot/cgi: Standardize access to the FormPage property descriptors.

Francois Gouget fgouget at codeweavers.com
Mon Mar 28 10:30:35 CDT 2022


Note that this requires the list of property descriptors to always be
set.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
Part of this patch escaped it and ended up in the FormPage 
reorganisation that caused trouble last week.
---
 testbot/lib/ObjectModel/CGI/FormPage.pm | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/testbot/lib/ObjectModel/CGI/FormPage.pm b/testbot/lib/ObjectModel/CGI/FormPage.pm
index 9e34a736d..2565c077b 100644
--- a/testbot/lib/ObjectModel/CGI/FormPage.pm
+++ b/testbot/lib/ObjectModel/CGI/FormPage.pm
@@ -117,8 +117,7 @@ sub GetPropertyDescriptorByName($$)
 {
   my ($self, $Name) = @_;
 
-  my $PropertyDescriptors = $self->GetPropertyDescriptors();
-  foreach my $PropertyDescriptor (@{$PropertyDescriptors})
+  foreach my $PropertyDescriptor (@{$self->GetPropertyDescriptors()})
   {
     if ($PropertyDescriptor->GetName() eq $Name)
     {
-- 
2.30.2



More information about the wine-devel mailing list