Ver Fonte

* TDOMNodeList.GetCount speed up from alexx, fixes #6891

git-svn-id: trunk@3568 -
florian há 19 anos atrás
pai
commit
1e3352a350
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      fcl/xml/dom.pp

+ 5 - 0
fcl/xml/dom.pp

@@ -959,6 +959,11 @@ function TDOMNodeList.GetCount: LongWord;
 var
   child: TDOMNode;
 begin
+  if not UseFilter then
+    begin
+      Result := Count;
+      exit;
+    end;
   Result := 0;
   child := node.FirstChild;
   while Assigned(child) do