<table><tr><td style="">sitter created this revision.<br />sitter added a reviewer: sebas.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D2080" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>using the default keyword hides compiler warnings. this causes enum<br />
expansion to require a dev to remember to expand all switch-cases that use<br />
the enum to make sure they are still correct, since that never ever happens<br />
don't use default. also, why do what a computer can do for us...</p>
<p>drop default keyword usage. replace it with explicitly break cases, which<br />
is explicitly overriding the compiler warning, and taking default actions<br />
*after* the switch-case block.<br />
this allows the compiler to warn about unhandled enum values. such as</p>
<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>console.cpp:139:12: warning: enumeration value ‘DVI’ not handled in switch [-Wswitch]</p></blockquote></div></div><br /><div><strong>REPOSITORY</strong><div><div>rKSCREEN KScreen</div></div></div><br /><div><strong>BRANCH</strong><div><div>Plasma/5.7</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D2080" rel="noreferrer">https://phabricator.kde.org/D2080</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>console/console.cpp<br />
kded/generator.cpp</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>sitter, sebas<br /><strong>Cc: </strong>plasma-devel, jensreuterberg, sebas<br /></div>