mirror of
https://github.com/roytam1/basilisk55.git
synced 2026-05-26 15:02:46 +00:00
import from UXP: Bug 2025976 - Make txxPathNode be a value instead of reference. (f568fa45)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user