Skip to content

Instantly share code, notes, and snippets.

@tronical
Created January 10, 2012 13:28
Show Gist options
  • Save tronical/1589091 to your computer and use it in GitHub Desktop.
Save tronical/1589091 to your computer and use it in GitHub Desktop.
if (classId == QLatin1String("QProgressBar"))
return new QProgressBar(view());
else if (classId == QLatin1String("QLabel"))
return new QLabel(view());
An else if statement should be written as an if statement when the prior "if" concludes with a return, break, continue or goto statement. [readability/control_flow] [4]
WTF? :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment