Commit ee5c19be authored by Mladen Milinkovic's avatar Mladen Milinkovic

Fixed compiler warnings.

parent ea500459
......@@ -143,16 +143,16 @@ ActionWithErrorTargetsDialog::selectedErrorFlags() const
errorFlags |= SubtitleLine::errorFlag((SubtitleLine::ErrorID)errorId);
switch(selectedTextsTarget()) {
case SubtitleLine::Primary: {
case Subtitle::Primary:
return errorFlags;
} case SubtitleLine::Secondary: {
int secondaryErrorFlags = (errorFlags &SubtitleLine::PrimaryOnlyErrors) << 1;
case Subtitle::Secondary: {
const int secondaryErrorFlags = (errorFlags &SubtitleLine::PrimaryOnlyErrors) << 1;
errorFlags = errorFlags & ~SubtitleLine::PrimaryOnlyErrors;
return errorFlags | secondaryErrorFlags;
}
case SubtitleLine::Both:
case Subtitle::Both:
default: {
int secondaryErrorFlags = (errorFlags &SubtitleLine::PrimaryOnlyErrors) << 1;
const int secondaryErrorFlags = (errorFlags &SubtitleLine::PrimaryOnlyErrors) << 1;
return errorFlags | secondaryErrorFlags;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment