зеркало из https://github.com/mozilla/gecko-dev.git
Bug 629200 part 5 - Add assignment operator to nsAttrValue; r=bz
This commit is contained in:
Родитель
457dcc152c
Коммит
935f0a8224
|
@ -171,6 +171,10 @@ nsAttrValue::Reset()
|
|||
void
|
||||
nsAttrValue::SetTo(const nsAttrValue& aOther)
|
||||
{
|
||||
if (this == &aOther) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (aOther.BaseType()) {
|
||||
case eStringBase:
|
||||
{
|
||||
|
|
|
@ -106,6 +106,8 @@ public:
|
|||
explicit nsAttrValue(const nsIntMargin& aValue);
|
||||
~nsAttrValue();
|
||||
|
||||
inline const nsAttrValue& operator=(const nsAttrValue& aOther);
|
||||
|
||||
static nsresult Init();
|
||||
static void Shutdown();
|
||||
|
||||
|
@ -397,6 +399,13 @@ private:
|
|||
* Implementation of inline methods
|
||||
*/
|
||||
|
||||
inline const nsAttrValue&
|
||||
nsAttrValue::operator=(const nsAttrValue& aOther)
|
||||
{
|
||||
SetTo(aOther);
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline nsIAtom*
|
||||
nsAttrValue::GetAtomValue() const
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче