Created
January 10, 2012 13:28
-
-
Save tronical/1589091 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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