зеркало из https://github.com/mozilla/gecko-dev.git
Fix access restrictions that were causing VC++'s brain to fizzle when compiled with NEW_STRING_APIS. r=scc
This commit is contained in:
Родитель
5b54400caf
Коммит
d98332652c
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
class nsInt64
|
class nsInt64
|
||||||
{
|
{
|
||||||
private:
|
public: //XXX should be private
|
||||||
PRInt64 mValue;
|
PRInt64 mValue;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -134,11 +134,6 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
// Arithmetic operators
|
// Arithmetic operators
|
||||||
friend const nsInt64 operator +(const nsInt64& aObject1, const nsInt64& aObject2);
|
|
||||||
friend const nsInt64 operator -(const nsInt64& aObject1, const nsInt64& aObject2);
|
|
||||||
friend const nsInt64 operator *(const nsInt64& aObject1, const nsInt64& aObject2);
|
|
||||||
friend const nsInt64 operator /(const nsInt64& aObject1, const nsInt64& aObject2);
|
|
||||||
friend const nsInt64 operator %(const nsInt64& aObject1, const nsInt64& aObject2);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Increment a 64-bit integer by a 64-bit integer amount.
|
* Increment a 64-bit integer by a 64-bit integer amount.
|
||||||
|
@ -181,17 +176,14 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
// Comparison operators
|
// Comparison operators
|
||||||
friend PRBool operator ==(const nsInt64& aObject1, const nsInt64& aObject2);
|
friend inline PRBool operator ==(const nsInt64& aObject1, const nsInt64& aObject2);
|
||||||
friend PRBool operator !=(const nsInt64& aObject1, const nsInt64& aObject2);
|
friend inline PRBool operator !=(const nsInt64& aObject1, const nsInt64& aObject2);
|
||||||
friend PRBool operator >(const nsInt64& aObject1, const nsInt64& aObject2);
|
friend inline PRBool operator >(const nsInt64& aObject1, const nsInt64& aObject2);
|
||||||
friend PRBool operator >=(const nsInt64& aObject1, const nsInt64& aObject2);
|
friend inline PRBool operator >=(const nsInt64& aObject1, const nsInt64& aObject2);
|
||||||
friend PRBool operator <(const nsInt64& aObject1, const nsInt64& aObject2);
|
friend inline PRBool operator <(const nsInt64& aObject1, const nsInt64& aObject2);
|
||||||
friend PRBool operator <=(const nsInt64& aObject1, const nsInt64& aObject2);
|
friend inline PRBool operator <=(const nsInt64& aObject1, const nsInt64& aObject2);
|
||||||
|
|
||||||
// Bitwise operators
|
// Bitwise operators
|
||||||
friend const nsInt64 operator &(const nsInt64& aObject1, const nsInt64& aObject2);
|
|
||||||
friend const nsInt64 operator |(const nsInt64& aObject1, const nsInt64& aObject2);
|
|
||||||
friend const nsInt64 operator ^(const nsInt64& aObject1, const nsInt64& aObject2);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compute the bitwise NOT of a 64-bit integer
|
* Compute the bitwise NOT of a 64-bit integer
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
class nsTime
|
class nsTime
|
||||||
{
|
{
|
||||||
private:
|
public: //XXX should be private
|
||||||
nsInt64 mValue;
|
nsInt64 mValue;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -95,6 +95,8 @@ public:
|
||||||
return mValue;
|
return mValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Arithmetic operators
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Subtract a 64-bit interval from a time.
|
* Subtract a 64-bit interval from a time.
|
||||||
*/
|
*/
|
||||||
|
@ -111,11 +113,6 @@ public:
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Arithmetic operators
|
|
||||||
friend const nsTime operator +(const nsTime& aTime, const nsInt64& aInterval);
|
|
||||||
friend const nsTime operator -(const nsTime& aTime, const nsInt64& aInterval);
|
|
||||||
friend const nsInt64 operator -(const nsTime& aTime1, const nsTime& aTime2);
|
|
||||||
|
|
||||||
// Comparison operators
|
// Comparison operators
|
||||||
friend const PRBool operator ==(const nsTime& aTime1, const nsTime& aTime2);
|
friend const PRBool operator ==(const nsTime& aTime1, const nsTime& aTime2);
|
||||||
friend const PRBool operator !=(const nsTime& aTime1, const nsTime& aTime2);
|
friend const PRBool operator !=(const nsTime& aTime1, const nsTime& aTime2);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче