Commit 7d36e8f7 authored by zecke@webkit.org's avatar zecke@webkit.org

2009-04-16 Holger Hans Peter Freyther <zecke@selfish.org>

        Rubber-stamped by Simon Hausmann.

        Make the operator== and operator!= non inline to
        allow looking at the d-pointer in the future.

        * Api/qwebelement.cpp:
        (QWebElement::operator==):
        (QWebElement::operator!=):
        * Api/qwebelement.h:

git-svn-id: svn://svn.chromium.org/blink/trunk@42596 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 8d8ff377
...@@ -122,6 +122,16 @@ QWebElement::~QWebElement() ...@@ -122,6 +122,16 @@ QWebElement::~QWebElement()
m_element->deref(); m_element->deref();
} }
bool QWebElement::operator==(const QWebElement& o) const
{
return m_element == o.m_element;
}
bool QWebElement::operator!=(const QWebElement& o) const
{
return m_element != o.m_element;
}
/*! /*!
Returns true if the element is a null element; false otherwise. Returns true if the element is a null element; false otherwise.
*/ */
......
...@@ -42,8 +42,8 @@ public: ...@@ -42,8 +42,8 @@ public:
QWebElement &operator=(const QWebElement &); QWebElement &operator=(const QWebElement &);
~QWebElement(); ~QWebElement();
inline bool operator==(const QWebElement& o) const { return m_element == o.m_element; } bool operator==(const QWebElement& o) const;
inline bool operator!=(const QWebElement& o) const { return m_element != o.m_element; } bool operator!=(const QWebElement& o) const;
bool isNull() const; bool isNull() const;
......
2009-04-16 Holger Hans Peter Freyther <zecke@selfish.org>
Rubber-stamped by Simon Hausmann.
Make the operator== and operator!= non inline to
allow looking at the d-pointer in the future.
* Api/qwebelement.cpp:
(QWebElement::operator==):
(QWebElement::operator!=):
* Api/qwebelement.h:
2009-04-15 Antonio Gomes <antonio.gomes@openbossa.org> 2009-04-15 Antonio Gomes <antonio.gomes@openbossa.org>
Reviewed by Ariya Hidayat. Reviewed by Ariya Hidayat.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment