Description, because “alt text” can’t show it well:
{
emit differentFiles (ckFile.absoluteFilePath(),
otherFile.absoluteFilePath(),
FileCompareWorker::FileComparisonParams{FileComparisonParams::FileNameMatch,
(ckFile.size() > otherFile.size()) ? FileComparisonParams::File1IsLarger
: FileComparisonParams::File2IsLarger});
}
After Alignment
{
emit differentFiles (ckFile.absoluteFilePath(),
otherFile.absoluteFilePath(),
FileCompareWorker::FileComparisonParams{FileComparisonParams::FileNameMatch,
(ckFile.size() > otherFile.size()) ? FileComparisonParams::File1IsLarger
: FileComparisonParams::File2IsLarger});
}
Like the other commented said, this isn’t random, but also I’d add that your first ternary option, the
?
, should be on the next line; it would make the alignment make more sense to you then, and it would make the block more legible.I think I’d rather go with the
?
being on the same line as the ‘condition’ and the rest can go on the other line.Otherwise, I’d be looking one line downwards and then coming back up after realising that it is a
(cond)?ex:ex
operator.