C++ error

In the file: srcprefsQualityPrefs.cpp at or near line numbers 167-179, examine this code:

         S.TieChoice(_("Sample Rate Con&verter:"),
                     Resample::GetFastMethodKey(),
                     Resample::GetFastMethodDefault(),
                     mConverterNames,
                     mConverterLabels),
         S.SetSizeHints(mConverterNames);

         S.TieChoice(_("&Dither:"),
                     wxT("/Quality/DitherAlgorithm"),
                     Dither::none,
                     mDitherNames,
                     mDitherLabels);
         S.SetSizeHints(mDitherNames);

there are two pair of “TieChoice” examples. The first one has an error; note that the function, which ends on the line which reads:
mConverterLabels),
is followed by a comma as opposed to the appropriate semi-colon. The proper usage can be seen in the next one which ends on the line which reads:
mDitherLabels);
Obviously, it compiles, but I am not sure what the current or future ramifications might be.

It happens again at line number 193

I don’t think it is actually an “Error” because a comma can be used there quite legally in C++ and the code does the same thing, but I agree that it is confusing, so I’ve fixed it (revision 13374).

It actually is an error though almost all current compilers allow it, here is the exact definition from the C++ specification:

6.2 Expression statement
1 Expression statements have the form
expression-statement:
expression;

Note that the expression must be terminated with a semicolon and there is no leeway for any other form of punctuation. Thanks for making the change.