Bug 1356843 - Fix -Wcomma warning in intl/uconv/util/nsUCSupport.cpp. r?jshin draft
authorChris Peterson <cpeterson@mozilla.com>
Sat, 08 Apr 2017 01:05:19 -0700
changeset 563338 1b929c1f305a54249df4c7ce72d8edf250e2d757
parent 563337 c8fb654450a5c209f66d50486588a7c34a66860b
child 563339 b3c001789e3e36dc721d8d206da8f5e831c91366
push id54258
push usercpeterson@mozilla.com
push dateSun, 16 Apr 2017 05:52:14 +0000
reviewersjshin
bugs1356843
milestone55.0a1
Bug 1356843 - Fix -Wcomma warning in intl/uconv/util/nsUCSupport.cpp. r?jshin clang's -Wcomma warning warns about suspicious use of the comma operator such as between two statements. intl/uconv/util/nsUCSupport.cpp:552:34 [-Wcomma] possible misuse of comma operator here MozReview-Commit-ID: Emk05qDJHbm
intl/uconv/util/nsUCSupport.cpp
--- a/intl/uconv/util/nsUCSupport.cpp
+++ b/intl/uconv/util/nsUCSupport.cpp
@@ -544,17 +544,17 @@ nsEncoderSupport::GetMaxLength(const cha
 
 nsTableEncoderSupport::nsTableEncoderSupport(uScanClassID aScanClass,
                                              uShiftOutTable* aShiftOutTable,
                                              uMappingTable* aMappingTable,
                                              uint32_t aMaxLengthFactor)
 : nsEncoderSupport(aMaxLengthFactor)
 {
   mScanClass = aScanClass;
-  mShiftOutTable = aShiftOutTable,
+  mShiftOutTable = aShiftOutTable;
   mMappingTable = aMappingTable;
 }
 
 nsTableEncoderSupport::nsTableEncoderSupport(uScanClassID aScanClass,
                                              uMappingTable* aMappingTable,
                                              uint32_t aMaxLengthFactor)
 : nsEncoderSupport(aMaxLengthFactor)
 {