Bug 1356843 - Fix -Wcomma warnings in widget/cocoa/nsDeviceContextSpecX.mm. r=spohl
clang's -Wcomma warning warns about suspicious use of the comma operator such as between two statements.
widget/cocoa/nsDeviceContextSpecX.mm:246:26 [-Wcomma] possible misuse of comma operator here
widget/cocoa/nsDeviceContextSpecX.mm:247:32 [-Wcomma] possible misuse of comma operator here
MozReview-Commit-ID: GhZQgNemLAE
--- a/widget/cocoa/nsDeviceContextSpecX.mm
+++ b/widget/cocoa/nsDeviceContextSpecX.mm
@@ -238,18 +238,20 @@ NS_IMETHODIMP nsDeviceContextSpecX::EndD
void nsDeviceContextSpecX::GetPaperRect(double* aTop, double* aLeft, double* aBottom, double* aRight)
{
NS_OBJC_BEGIN_TRY_ABORT_BLOCK;
PMRect paperRect;
::PMGetAdjustedPaperRect(mPageFormat, &paperRect);
- *aTop = paperRect.top, *aLeft = paperRect.left;
- *aBottom = paperRect.bottom, *aRight = paperRect.right;
+ *aTop = paperRect.top;
+ *aLeft = paperRect.left;
+ *aBottom = paperRect.bottom;
+ *aRight = paperRect.right;
NS_OBJC_END_TRY_ABORT_BLOCK;
}
already_AddRefed<PrintTarget> nsDeviceContextSpecX::MakePrintTarget()
{
double top, left, bottom, right;
GetPaperRect(&top, &left, &bottom, &right);