<table><tr><td style="">ahmadsamir updated this revision to Diff 76705.<br />ahmadsamir 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/D26211">View Revision</a></tr></table><br /><div><div><ul class="remarkup-list">
<li class="remarkup-list-item">Move the QRegularExpression definition out of the for loop, more efficient as it'll reused</li>
<li class="remarkup-list-item">match() always allocates a QRegularExpressionMatch anyway, so move it inside the while loop</li>
<li class="remarkup-list-item">Make the first () non-capturing since the capture group isn't needed</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R246 Sonnet</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D26211?vs=72149&id=76705">https://phabricator.kde.org/D26211?vs=72149&id=76705</a></div></div><br /><div><strong>BRANCH</strong><div><div>l-qregularexpression (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D26211">https://phabricator.kde.org/D26211</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>data/parsetrigrams.cpp</div></div></div><br /><div><strong>To: </strong>ahmadsamir, cullmann, apol<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns<br /></div>