<table><tr><td style="">aaronpuchert added a comment.
</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/D9042" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p><a href="https://phabricator.kde.org/p/mwolff/" style="
border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;" rel="noreferrer">@mwolff</a> Are the additional changes Ok? There are no new warnings anymore.</p>
<p>I used <tt style="background: #ebebeb; font-size: 13px;">Q_UNREACHABLE()</tt> when the enumeration was used safely and a fallback when unchecked <tt style="background: #ebebeb; font-size: 13px;">static_cast</tt>s were involved. In an ideal world, I would probably try to make sure that enumerations only ever have valid values, but right now I don't understand enough of the code base to properly fix this.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>BRANCH</strong><div><div>switch-enum</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9042" rel="noreferrer">https://phabricator.kde.org/D9042</a></div></div><br /><div><strong>To: </strong>aaronpuchert, KDevelop, mwolff<br /><strong>Cc: </strong>mwolff, apol, kdevelop-devel<br /></div>