<table><tr><td style="">ngraham created this revision.<br />ngraham added reviewers: davidre, Plasma.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />ngraham requested review of this revision.
</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/D28724">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Though for some reason it's not failing on the CI, plasma-integration is failing to build<br />
for me with the following error:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">/home/nate/kde/src/plasma-integration/src/platformtheme/kdeplatformfiledialoghelper.cpp:342:78: error: cannot bind non-const lvalue reference of type ‘QStringList&’ to an rvalue of type ‘QStringList’
  342 |         dialog->m_fileWidget->setSupportedSchemes(options()->supportedSchemes());
      |                                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~</pre></div>

<p><tt style="background: #ebebeb; font-size: 13px;">options()->supportedSchemes()</tt> returns a const reference but <tt style="background: #ebebeb; font-size: 13px;">dialog->m_fileWidget->setSupportedSchemes</tt><br />
wants a non-const reference, so this patch has it make a local copy to keep it happy. This<br />
is kind of weird since the code here hasn't been touched in years and<br />
`options()->supportedSchemes() has returned a const reference for a long time too, yet<br />
this code only now started failing for me yesterday.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>It builds for me now</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R135 Integration for Qt applications in Plasma</div></div></div><br /><div><strong>BRANCH</strong><div><div>fix-build (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28724">https://phabricator.kde.org/D28724</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/platformtheme/kdeplatformfiledialoghelper.cpp</div></div></div><br /><div><strong>To: </strong>ngraham, davidre, Plasma<br /><strong>Cc: </strong>plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>