зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1356843 - Fix -Wcomma warnings in dom/svg/SVGGeomeetryElement.h. r=dholbert
clang's -Wcomma warning warns about suspicious use of the comma operator such as between two statements. dom/svg/SVGGeometryElement.h:117:21 [-Wcomma] possible misuse of comma operator here dom/svg/SVGGeometryElement.h:117:41 [-Wcomma] possible misuse of comma operator here dom/svg/SVGGeometryElement.h:128:14 [-Wcomma] possible misuse of comma operator here dom/svg/SVGGeometryElement.h:128:23 [-Wcomma] possible misuse of comma operator here MozReview-Commit-ID: CfNOsfcJTEp --HG-- extra : rebase_source : a9cda16923d853b4b9fd26d796ba1a6739e85383 extra : source : 91d3b4d038285c034294ea3164c4e55e300e4823
This commit is contained in:
Родитель
3613a6700f
Коммит
064b9e3229
|
@ -114,7 +114,10 @@ public:
|
|||
return mType != NONE;
|
||||
}
|
||||
void SetRect(Float x, Float y, Float width, Float height) {
|
||||
mX = x; mY = y, mWidthOrX2 = width, mHeightOrY2 = height;
|
||||
mX = x;
|
||||
mY = y;
|
||||
mWidthOrX2 = width;
|
||||
mHeightOrY2 = height;
|
||||
mType = RECT;
|
||||
}
|
||||
Rect AsRect() const {
|
||||
|
@ -125,7 +128,10 @@ public:
|
|||
return mType == RECT;
|
||||
}
|
||||
void SetLine(Float x1, Float y1, Float x2, Float y2) {
|
||||
mX = x1, mY = y1, mWidthOrX2 = x2, mHeightOrY2 = y2;
|
||||
mX = x1;
|
||||
mY = y1;
|
||||
mWidthOrX2 = x2;
|
||||
mHeightOrY2 = y2;
|
||||
mType = LINE;
|
||||
}
|
||||
Point Point1() const {
|
||||
|
|
Загрузка…
Ссылка в новой задаче