import from UXP: Bug 2025976 - Make txxPathNode be a value instead of reference. (f568fa45)

This commit is contained in:
2026-04-27 11:31:45 +08:00
parent 94fb8c8a67
commit 6dff654719
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -18,6 +18,7 @@ typedef nsIDOMNode txXPathNodeType;
class txXPathNode
{
public:
txXPathNode(const txXPathNode& aNode);
bool operator==(const txXPathNode& aNode) const;
bool operator!=(const txXPathNode& aNode) const
{
@@ -31,8 +32,6 @@ private:
friend class txXPathNodeUtils;
friend class txXPathTreeWalker;
txXPathNode(const txXPathNode& aNode);
explicit txXPathNode(nsIDocument* aDocument) : mNode(aDocument),
mRefCountRoot(0),
mIndex(eDocument)
+1 -1
View File
@@ -109,7 +109,7 @@ txXSLTNumber::getValueList(Expr* aValueExpr, txPattern* aCountPattern,
txPattern* countPattern = aCountPattern;
bool ownsCountPattern = false;
const txXPathNode& currNode = aContext->getContextNode();
txXPathNode currNode(aContext->getContextNode());
// Parse count- and from-attributes