Eliminate anonymous struct (and useless bitfields) to fix irix compilation problem

This commit is contained in:
kipp 1998-05-13 00:10:35 +00:00
parent a56175b972
commit f926f04a0b
3 changed files with 12 additions and 18 deletions

View File

@ -105,12 +105,10 @@ public:
void ToString(nsString& aBuffer) const;
protected:
struct {
PRUint32 mLeftUnit: 8; // use bit fields to ensure packing...
PRUint32 mTopUnit: 8;
PRUint32 mRightUnit: 8;
PRUint32 mBottomUnit: 8;
};
PRUint8 mLeftUnit;
PRUint8 mTopUnit;
PRUint8 mRightUnit;
PRUint8 mBottomUnit;
nsStyleUnion mLeftValue;
nsStyleUnion mTopValue;
nsStyleUnion mRightValue;

View File

@ -105,12 +105,10 @@ public:
void ToString(nsString& aBuffer) const;
protected:
struct {
PRUint32 mLeftUnit: 8; // use bit fields to ensure packing...
PRUint32 mTopUnit: 8;
PRUint32 mRightUnit: 8;
PRUint32 mBottomUnit: 8;
};
PRUint8 mLeftUnit;
PRUint8 mTopUnit;
PRUint8 mRightUnit;
PRUint8 mBottomUnit;
nsStyleUnion mLeftValue;
nsStyleUnion mTopValue;
nsStyleUnion mRightValue;

View File

@ -105,12 +105,10 @@ public:
void ToString(nsString& aBuffer) const;
protected:
struct {
PRUint32 mLeftUnit: 8; // use bit fields to ensure packing...
PRUint32 mTopUnit: 8;
PRUint32 mRightUnit: 8;
PRUint32 mBottomUnit: 8;
};
PRUint8 mLeftUnit;
PRUint8 mTopUnit;
PRUint8 mRightUnit;
PRUint8 mBottomUnit;
nsStyleUnion mLeftValue;
nsStyleUnion mTopValue;
nsStyleUnion mRightValue;