<table><tr><td style="">sandsmark accepted this revision.<br />sandsmark added a comment.<br />This revision is now accepted and ready to land.
</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/D15295">View Revision</a></tr></table><br /><div><div><p>The issues are just cosmetic, didn't intend to block this.</p>

<p>But Hindenburg should probably give a go-ahead as well.</p></div></div><br /><div><strong>INLINE COMMENTS</strong><div><div style="margin: 6px 0 12px 0;"><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D15295#inline-88600">View Inline</a><span style="color: #4b4d51; font-weight: bold;">rjvbb</span> wrote in <span style="color: #4b4d51; font-weight: bold;">ViewSplitter.cpp:46</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">I simply haven't adapted yet to the fact that there's now a "normal for" equivalent of Qt's equally "normal foreach"...</p>

<p style="padding: 0; margin: 8px;">If you prefer I can use an explicit type but I think this is as good a place to be lazy as any. Besides, in any self-respecting IDE you can hover the mouse cursor over either the variable or <tt style="background: #ebebeb; font-size: 13px;">unregisterContainer()</tt> and a popup will tell you what type the variable (must) be ;)</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">I don't always use an IDE when reading code, and I (almost) never use the mouse when writing code. But again, it's my own personal preference, Hindenburg uses auto a lot all over the place.</p>

<p style="padding: 0; margin: 8px;">And looking around, seems like foreach isn't used extensively either, so they all can probably be converted automatically en masse later.</p></div></div><br /><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D15295#inline-88599">View Inline</a><span style="color: #4b4d51; font-weight: bold;">rjvbb</span> wrote in <span style="color: #4b4d51; font-weight: bold;">ViewSplitter.h:185</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">I'm not certain I get this. Put <tt style="background: #ebebeb; font-size: 13px;">_containers</tt> in a QPointer or make it a <tt style="background: #ebebeb; font-size: 13px;">QList< QPointer<TabbedViewContainer *> ></tt>?</p>

<p style="padding: 0; margin: 8px;">The former is impossible AFAIK (QList doesn't inherit QObject), while the latter isn't relevant because the crash was caused by accessing a stale <tt style="background: #ebebeb; font-size: 13px;">_containers</tt> instance (i.e. a member variable of a stale <tt style="background: #ebebeb; font-size: 13px;">ViewSplitter</tt> instance).</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">wasn't thinking about it being an issue now, but rather in the future.</p>

<p style="padding: 0; margin: 8px;">a QPointer here shouldn't impact performance anyways.</p></div></div></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R319 Konsole</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15295">https://phabricator.kde.org/D15295</a></div></div><br /><div><strong>To: </strong>rjvbb, Konsole, hindenburg, sandsmark<br /><strong>Cc: </strong>sandsmark, anthonyfieroni, tcanabrava, konsole-devel, KDE Applications, maciejn, thsurrel, ngraham, maximilianocuria, hindenburg<br /></div>