<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="http://git.reviewboard.kde.org/r/111615/">http://git.reviewboard.kde.org/r/111615/</a>
     </td>
    </tr>
   </table>
   <br />





 <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">I did not look though all yet. Looks quite good. Here my comments before I leave now. Will look more when I'm back.</pre>
 <br />







<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/111615/diff/2/?file=174071#file174071line322" style="color: black; font-weight: bold; text-decoration: underline;">karbon/plugins/tools/KarbonGradientEditStrategy.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">void GradientStrategy::applyChanges()</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">322</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">            <span class="n">KoGradientBackground</span><span class="hl"> </span><span class="o"><span class="hl">*</span></span> <span class="n">newFill</span> <span class="o">=</span> <span class="k">new</span> <span class="n">KoGradientBackground</span><span class="p">(</span><span class="o">*</span><span class="n">fill</span><span class="o">-></span><span class="n">gradient</span><span class="p">(),</span> <span class="n">fill</span><span class="o">-></span><span class="n">transform</span><span class="p">());</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">322</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">            <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n">KoGradientBackground</span><span class="o"><span class="hl">></span></span> <span class="n">newFill</span> <span class="o">=</span> <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n"><span class="hl">KoGradientBackground</span></span><span class="o"><span class="hl">></span></span><span class="p"><span class="hl">(</span></span><span class="k">new</span> <span class="n">KoGradientBackground</span><span class="p">(</span><span class="o">*</span><span class="n">fill</span><span class="o">-></span><span class="n">gradient</span><span class="p">(),</span> <span class="n">fill</span><span class="o">-></span><span class="n">transform</span><span class="p">())<span class="hl">)</span>;</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">This and similar places can be simplified to QSharedPointer<KoGradientBackground> newFill (new KoGradientBackground(*fill->gradient(), fill->transform()));</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/111615/diff/2/?file=174072#file174072line151" style="color: black; font-weight: bold; text-decoration: underline;">karbon/plugins/tools/KarbonGradientTool.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">void KarbonGradientTool::mousePressEvent(KoPointerEvent *event)</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">151</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">                <span class="n">KoGradientBackground</span><span class="hl"> </span><span class="o"><span class="hl">*</span></span> <span class="n">fill</span> <span class="o">=</span> <span class="k">new</span> <span class="n">KoGradientBackground</span><span class="p">(</span><span class="o">*</span><span class="n">m_gradient</span><span class="p">);</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">151</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">                <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n">KoGradientBackground</span><span class="o"><span class="hl">></span></span><span class="hl"> </span> <span class="n">fill</span> <span class="o">=</span> <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n"><span class="hl">KoGradientBackground</span></span><span class="o"><span class="hl">></span></span><span class="p"><span class="hl">(</span></span><span class="k">new</span> <span class="n">KoGradientBackground</span><span class="p">(</span><span class="o">*</span><span class="n">m_gradient</span><span class="p">)<span class="hl">)</span>;</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Can be simplified as above</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/111615/diff/2/?file=174072#file174072line542" style="color: black; font-weight: bold; text-decoration: underline;">karbon/plugins/tools/KarbonGradientTool.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">void KarbonGradientTool::gradientChanged()</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">542</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">            <span class="n">KoGradientBackground</span><span class="hl"> </span><span class="o"><span class="hl">*</span></span> <span class="n">newFill</span> <span class="o">=</span> <span class="mi"><span class="hl">0</span></span><span class="p">;</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">542</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">            <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n">KoGradientBackground</span><span class="o"><span class="hl">></span></span> <span class="n">newFill</span> <span class="o">=</span> <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n"><span class="hl">KoGradientBackground</span></span><span class="o"><span class="hl">></span></span><span class="p"><span class="hl">(</span></span><span class="mi"><span class="hl">0</span></span><span class="p"><span class="hl">)</span>;</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Can be simplified to QSharedPointer<KoGradientBackground> newFill (0); or even QSharedPointer<KoGradientBackground> newFill;</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/111615/diff/2/?file=174074#file174074line78" style="color: black; font-weight: bold; text-decoration: underline;">karbon/plugins/tools/KarbonPatternEditStrategy.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">bool KarbonPatternEditStrategyBase::isModified() const</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">78</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="n">KoPatternBackground</span><span class="hl"> </span><span class="o"><span class="hl">*</span></span> <span class="n">newFill</span> <span class="o">=</span> <span class="k">new</span> <span class="n">KoPatternBackground</span><span class="p">(</span><span class="n">m_imageCollection</span><span class="p">);</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">78</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n">KoPatternBackground</span><span class="o"><span class="hl">></span></span> <span class="n">newFill</span> <span class="o">=</span> <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n"><span class="hl">KoPatternBackground</span></span><span class="o"><span class="hl">></span></span><span class="p"><span class="hl">(</span></span><span class="k">new</span> <span class="n">KoPatternBackground</span><span class="p">(</span><span class="n">m_imageCollection</span><span class="p">)<span class="hl">)</span>;</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Can be simplified as above</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/111615/diff/2/?file=174075#file174075line198" style="color: black; font-weight: bold; text-decoration: underline;">karbon/plugins/tools/KarbonPatternTool.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">void KarbonPatternTool::initialize()</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">198</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="k">if</span> <span class="p">(</span><span class="k">dynamic_cast</span><span class="o"><</span><span class="n">KoPatternBackground</span><span class="o">*></span><span class="p">(</span><span class="n">shape</span><span class="o">-></span><span class="n">background</span><span class="p">()))</span> <span class="p">{</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">198</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="k">if</span> <span class="p">(</span><span class="k">dynamic_cast</span><span class="o"><</span><span class="n">KoPatternBackground</span><span class="o">*></span><span class="p">(</span><span class="n">shape</span><span class="o">-></span><span class="n">background</span><span class="p">()<span class="hl">.</span></span><span class="n"><span class="hl">data</span></span><span class="p"><span class="hl">()</span>))</span> <span class="p">{</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Shouldn't this used a qSharedPointerDynamicCast instead of data()?</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/111615/diff/2/?file=174075#file174075line303" style="color: black; font-weight: bold; text-decoration: underline;">karbon/plugins/tools/KarbonPatternTool.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">void KarbonPatternTool::patternSelected(KoResource * resource)</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">303</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="n">KoPatternBackground</span><span class="hl"> </span><span class="o"><span class="hl">*</span></span> <span class="n">newFill</span> <span class="o">=</span> <span class="k">new</span> <span class="n">KoPatternBackground</span><span class="p">(</span><span class="n">imageCollection</span><span class="p">);</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">303</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n">KoPatternBackground</span><span class="o"><span class="hl">></span></span> <span class="n">newFill</span> <span class="o">=</span> <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n"><span class="hl">KoPatternBackground</span></span><span class="o"><span class="hl">></span></span><span class="p"><span class="hl">(</span></span><span class="k">new</span> <span class="n">KoPatternBackground</span><span class="p">(</span><span class="n">imageCollection</span><span class="p">)<span class="hl">)</span>;</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Can be simplified as above</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/111615/diff/2/?file=174075#file174075line334" style="color: black; font-weight: bold; text-decoration: underline;">karbon/plugins/tools/KarbonPatternTool.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">void KarbonPatternTool::updateOptionsWidget()</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">334</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="n">KoPatternBackground</span><span class="hl"> </span><span class="o"><span class="hl">*</span></span> <span class="n">newFill</span> <span class="o">=</span> <span class="k">new</span> <span class="n">KoPatternBackground</span><span class="p">(</span><span class="n">imageCollection</span><span class="p">);</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">334</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n">KoPatternBackground</span><span class="o"><span class="hl">></span></span> <span class="n">newFill</span> <span class="o">=</span> <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n"><span class="hl">KoPatternBackground</span></span><span class="o"><span class="hl">></span></span><span class="p"><span class="hl">(</span></span><span class="k">new</span> <span class="n">KoPatternBackground</span><span class="p">(</span><span class="n">imageCollection</span><span class="p">)<span class="hl">)</span>;</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Can be simplified as above</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/111615/diff/2/?file=174076#file174076line416" style="color: black; font-weight: bold; text-decoration: underline;">karbon/ui/KarbonView.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">void KarbonView::dropEvent(QDropEvent *e)</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">416</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">            <span class="n"><span class="hl">KoColor</span>Background</span><span class="hl"> </span><span class="o"><span class="hl">*</span></span> <span class="n">fill</span> <span class="o">=</span> <span class="k">new</span> <span class="n">KoColorBackground</span><span class="p">(</span><span class="n">color</span><span class="p">);</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">416</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">            <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n"><span class="hl">KoShape</span>Background</span><span class="o"><span class="hl">></span></span> <span class="n">fill</span> <span class="o">=</span> <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n"><span class="hl">KoShapeBackground</span></span><span class="o"><span class="hl">></span></span><span class="p"><span class="hl">(</span></span><span class="k">new</span> <span class="n">KoColorBackground</span><span class="p">(</span><span class="n">color</span><span class="p">)<span class="hl">)</span>;</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Can be simplified as above</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/111615/diff/2/?file=174076#file174076line1514" style="color: black; font-weight: bold; text-decoration: underline;">karbon/ui/KarbonView.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">void KarbonView::applyPaletteColor(const KoColor &color)</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">1514</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="n">KoShapeBackground</span><span class="hl"> </span><span class="o"><span class="hl">*</span></span><span class="n">fill</span> <span class="o">=</span> <span class="k">new</span> <span class="n">KoColorBackground</span><span class="p">(</span><span class="n">color</span><span class="p">.</span><span class="n">toQColor</span><span class="p">());</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">1514</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n">KoShapeBackground</span><span class="o"><span class="hl">></span></span><span class="hl"> </span><span class="n">fill</span> <span class="o">=</span> <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n"><span class="hl">KoShapeBackground</span></span><span class="o"><span class="hl">></span></span><span class="p"><span class="hl">(</span></span><span class="k">new</span> <span class="n">KoColorBackground</span><span class="p">(</span><span class="n">color</span><span class="p">.</span><span class="n">toQColor</span><span class="p">())<span class="hl">)</span>;</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Can be simplified as above</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/111615/diff/2/?file=174080#file174080line250" style="color: black; font-weight: bold; text-decoration: underline;">krita/ui/opengl/kis_opengl_canvas2.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">void KisOpenGLCanvas2::paintEvent(QPaintEvent *)</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#b1ebb0" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2"></font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "></pre></td>
    <th bgcolor="#b1ebb0" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">250</font></th>
    <td bgcolor="#c5ffc4" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="n">m_d</span><span class="o">-></span><span class="n">openGLImageTextures</span><span class="o">-></span><span class="n">activateHDRExposureProgram</span><span class="p">();</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">This change seems to be unrelated as the next one</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/111615/diff/2/?file=174081#file174081line138" style="color: black; font-weight: bold; text-decoration: underline;">krita/ui/tool/kis_tool_shape.cc</a>
    <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">void KisToolShape::setupPaintAction(KisRecordedPaintAction* action)</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">138</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">                <span class="n">KoPatternBackground</span><span class="o"><span class="hl">*</span></span> <span class="n">fill</span> <span class="o">=</span> <span class="k">new</span> <span class="n">KoPatternBackground</span><span class="p">(</span><span class="n">imageCollection</span><span class="p">);</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">138</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">                <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n">KoPatternBackground</span><span class="o"><span class="hl">></span></span> <span class="n">fill</span> <span class="o">=</span> <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n"><span class="hl">KoPatternBackground</span></span><span class="o"><span class="hl">></span></span><span class="p"><span class="hl">(</span></span><span class="k">new</span> <span class="n">KoPatternBackground</span><span class="p">(</span><span class="n">imageCollection</span><span class="p">)<span class="hl">)</span>;</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">This can be simplified as above.</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/111615/diff/2/?file=174081#file174081line150" style="color: black; font-weight: bold; text-decoration: underline;">krita/ui/tool/kis_tool_shape.cc</a>
    <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">void KisToolShape::setupPaintAction(KisRecordedPaintAction* action)</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">150</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">                <span class="n">KoGradientBackground</span><span class="o"><span class="hl">*</span></span> <span class="n">gradientFill</span> <span class="o">=</span> <span class="k">new</span> <span class="n">KoGradientBackground</span><span class="p">(</span><span class="n">gradient</span><span class="p">);</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">150</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">                <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n">KoGradientBackground</span><span class="o"><span class="hl">></span></span><span class="hl"> </span> <span class="n">gradientFill</span> <span class="o">=</span> <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n"><span class="hl">KoGradientBackground</span></span><span class="o"><span class="hl">></span></span><span class="p"><span class="hl">(</span></span><span class="k">new</span> <span class="n">KoGradientBackground</span><span class="p">(</span><span class="n">gradient</span><span class="p">)<span class="hl">)</span>;</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">This can be simplified as above</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/111615/diff/2/?file=174087#file174087line1420" style="color: black; font-weight: bold; text-decoration: underline;">libs/flake/KoShape.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">void KoShape::loadStyle(const KoXmlElement &element, KoShapeLoadingContext &context)</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">1420</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="n">margin</span> <span class="o">=</span> <span class="n">styleStack</span><span class="p">.</span><span class="n">property</span><span class="p">(</span><span class="n">KoXmlNS</span><span class="o">::</span><span class="n">fo</span><span class="p">,</span> <span class="s">"margin-top"</span><span class="p">);</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">1406</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="n">margin</span> <span class="o">=</span> <span class="n">styleStack</span><span class="p">.</span><span class="n">property</span><span class="p">(</span><span class="n">KoXmlNS</span><span class="o">::</span><span class="n">fo</span><span class="p">,</span> <span class="s">"margin-<span class="hl">left</span>"</span><span class="p">);</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">These look like strange artefacts to me</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/111615/diff/2/?file=174094#file174094line595" style="color: black; font-weight: bold; text-decoration: underline;">libs/flake/svg/SvgParser.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">void SvgParser::applyFillStyle(KoShape *shape)</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">595</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">                    <span class="n">KoPatternBackground</span><span class="hl"> </span><span class="o"><span class="hl">*</span></span><span class="n">bg</span> <span class="o">=</span> <span class="k">new</span> <span class="n">KoPatternBackground</span><span class="p">(</span><span class="n">imageCollection</span><span class="p">);</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">595</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">                    <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n">KoPatternBackground</span><span class="o"><span class="hl">></span></span><span class="hl"> </span><span class="n">bg</span> <span class="o">=</span> <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n"><span class="hl">KoPatternBackground</span></span><span class="o"><span class="hl">></span></span><span class="p"><span class="hl">(</span></span><span class="k">new</span> <span class="n">KoPatternBackground</span><span class="p">(</span><span class="n">imageCollection</span><span class="p">)<span class="hl">)</span>;</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Can be simplified as above.</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/111615/diff/2/?file=174094#file174094line1270" style="color: black; font-weight: bold; text-decoration: underline;">libs/flake/svg/SvgParser.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">KoShape * SvgParser::createShapeFromElement(const KoXmlElement &element, SvgLoadingContext &context)</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">1270</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="n">KoShapeBackground</span><span class="hl"> </span><span class="o"><span class="hl">*</span></span><span class="n">oldFill</span> <span class="o">=</span> <span class="n">shape</span><span class="o">-></span><span class="n">background</span><span class="p">();</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">1270</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n">KoShapeBackground</span><span class="o"><span class="hl">></span></span><span class="hl"> </span><span class="n">oldFill</span> <span class="o">=</span> <span class="n">shape</span><span class="o">-></span><span class="n">background</span><span class="p">();</span></pre></td>
  </tr>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">1271</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="n">shape</span><span class="o">-></span><span class="n">setBackground</span><span class="p">(</span><span class="mi"><span class="hl">0</span></span><span class="p"><span class="hl">)</span>;</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">1271</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="n">shape</span><span class="o">-></span><span class="n">setBackground</span><span class="p">(</span><span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n"><span class="hl">KoShapeBackground</span></span><span class="o"><span class="hl">></span></span><span class="p"><span class="hl">(</span></span><span class="mi"><span class="hl">0</span></span><span class="p"><span class="hl">))</span>;</span></pre></td>
  </tr>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">1272</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="k"><span class="hl">delete</span></span><span class="hl"> </span><span class="n">oldFill</span><span class="p">;</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">1272</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">        <span class="n">oldFill</span><span class="p"><span class="hl">.</span></span><span class="n"><span class="hl">clear</span></span><span class="p"><span class="hl">()</span>;</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Getting the oldFill and clearing it is not needed. Calling setBackground is enough.</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/111615/diff/2/?file=174094#file174094line1315" style="color: black; font-weight: bold; text-decoration: underline;">libs/flake/svg/SvgParser.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">KoShape * SvgParser::createShape(const QString &shapeID)</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">1315</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="n">KoShapeBackground</span><span class="hl"> </span><span class="o"><span class="hl">*</span></span><span class="n">oldFill</span> <span class="o">=</span> <span class="n">shape</span><span class="o">-></span><span class="n">background</span><span class="p">();</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">1315</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n">KoShapeBackground</span><span class="o"><span class="hl">></span></span><span class="hl"> </span><span class="n">oldFill</span> <span class="o">=</span> <span class="n">shape</span><span class="o">-></span><span class="n">background</span><span class="p">();</span></pre></td>
  </tr>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">1316</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="n">shape</span><span class="o">-></span><span class="n">setBackground</span><span class="p">(</span><span class="mi"><span class="hl">0</span></span><span class="p"><span class="hl">)</span>;</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">1316</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="n">shape</span><span class="o">-></span><span class="n">setBackground</span><span class="p">(</span><span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n"><span class="hl">KoShapeBackground</span></span><span class="o"><span class="hl">></span></span><span class="p"><span class="hl">(</span></span><span class="mi"><span class="hl">0</span></span><span class="p"><span class="hl">))</span>;</span></pre></td>
  </tr>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">1317</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">   <span class="hl"> </span><span class="k"><span class="hl">delete</span></span> <span class="n">oldFill</span><span class="p">;</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">1317</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="n">oldFill</span><span class="p"><span class="hl">.</span></span><span class="n"><span class="hl">clear</span></span><span class="p"><span class="hl">()</span>;</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Getting the oldFill and clearing it is not needed. Calling setBackground is enough.</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/111615/diff/2/?file=174097#file174097line30" style="color: black; font-weight: bold; text-decoration: underline;">libs/flake/tests/TestShapeBackgroundCommand.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>



 
 

 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">30</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="n">KoShapeBackground</span><span class="hl"> </span><span class="o"><span class="hl">*</span></span> <span class="n">whiteFill</span> <span class="o">=</span> <span class="k">new</span> <span class="n">KoColorBackground</span><span class="p">(</span><span class="n">QColor</span><span class="p">(</span><span class="n">Qt</span><span class="o">::</span><span class="n">white</span><span class="p">));</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">30</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n">KoShapeBackground</span><span class="o"><span class="hl">></span></span> <span class="n">whiteFill</span> <span class="o">=</span> <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n"><span class="hl">KoShapeBackground</span></span><span class="o"><span class="hl">></span></span><span class="p"><span class="hl">(</span></span><span class="k">new</span> <span class="n">KoColorBackground</span><span class="p">(</span><span class="n">QColor</span><span class="p">(</span><span class="n">Qt</span><span class="o">::</span><span class="n">white</span><span class="p">))<span class="hl">)</span>;</span></pre></td>
  </tr>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">31</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="n">KoShapeBackground</span><span class="hl"> </span><span class="o"><span class="hl">*</span></span> <span class="n">blackFill</span> <span class="o">=</span> <span class="k">new</span> <span class="n">KoColorBackground</span><span class="p">(</span><span class="n">QColor</span><span class="p">(</span><span class="n">Qt</span><span class="o">::</span><span class="n">black</span><span class="p">));</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">31</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n">KoShapeBackground</span><span class="o"><span class="hl">></span></span> <span class="n">blackFill</span> <span class="o">=</span> <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n"><span class="hl">KoShapeBackground</span></span><span class="o"><span class="hl">></span></span><span class="p"><span class="hl">(</span></span><span class="k">new</span> <span class="n">KoColorBackground</span><span class="p">(</span><span class="n">QColor</span><span class="p">(</span><span class="n">Qt</span><span class="o">::</span><span class="n">black</span><span class="p">))<span class="hl">)</span>;</span></pre></td>
  </tr>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">32</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="n">KoShapeBackground</span><span class="hl"> </span><span class="o"><span class="hl">*</span></span> <span class="n">redFill</span> <span class="o"><span class="hl">=</span></span><span class="hl"> </span><span class="k">new</span> <span class="n">KoColorBackground</span><span class="p">(</span><span class="n">QColor</span><span class="p">(</span><span class="n">Qt</span><span class="o">::</span><span class="n">red</span><span class="p">));</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">32</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n">KoShapeBackground</span><span class="o"><span class="hl">></span></span> <span class="n">redFill</span>   <span class="o"><span class="hl">=</span></span><span class="hl"> </span><span class="n"><span class="hl">QSharedPointer</span></span><span class="o"><span class="hl"><</span></span><span class="n"><span class="hl">KoShapeBackground</span></span><span class="o"><span class="hl">></span></span><span class="p"><span class="hl">(</span></span><span class="k">new</span> <span class="n">KoColorBackground</span><span class="p">(</span><span class="n">QColor</span><span class="p">(</span><span class="n">Qt</span><span class="o">::</span><span class="n">red</span><span class="p">))<span class="hl">)</span>;</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Can be simplified as above.</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/111615/diff/2/?file=174102#file174102line380" style="color: black; font-weight: bold; text-decoration: underline;">libs/widgets/KoFillConfigWidget.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">void KoFillConfigWidget::colorChanged()</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">379</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">   <span class="hl"> </span><span class="k"><span class="hl">delete</span></span> <span class="n">gradientBackground</span><span class="p">;</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">380</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="n">gradientBackground</span><span class="p"><span class="hl">.</span></span><span class="n"><span class="hl">clear</span></span><span class="p"><span class="hl">()</span>;</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Clearing the smart pointer is not needed.</pre>
</div>
<br />

<div>




<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
 <thead>
  <tr>
   <th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
    <a href="http://git.reviewboard.kde.org/r/111615/diff/2/?file=174102#file174102line499" style="color: black; font-weight: bold; text-decoration: underline;">libs/widgets/KoFillConfigWidget.cpp</a>
    <span style="font-weight: normal;">

     (Diff revision 2)

    </span>
   </th>
  </tr>
 </thead>

 <tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
  <tr>

   <td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">void KoFillConfigWidget::updateWidget(KoShape *shape)</pre></td>

  </tr>
 </tbody>



 
 

 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">498</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="n">KoGradientBackground</span> <span class="o">*</span><span class="n">newGradient</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span></pre></td>
    <th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">499</font></th>
    <td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">    <span class="n">QSharedPointer</span><span class="o"><</span><span class="n">KoGradientBackground</span><span class="o">></span> <span class="n">newGradient</span> <span class="o">=</span> <span class="n">QSharedPointer</span><span class="o"><</span><span class="n">KoGradientBackground</span><span class="o">></span><span class="p">(</span><span class="mi">0</span><span class="p">);</span></pre></td>
  </tr>

 </tbody>

</table>

<pre style="margin-left: 2em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Can not be simplified as above.</pre>
</div>
<br />



<p>- Thorsten</p>


<br />
<p>On July 28th, 2013, 9:46 a.m. UTC, Boudewijn Rempt wrote:</p>








<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('http://git.reviewboard.kde.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for Calligra and Jan Hambrecht.</div>
<div>By Boudewijn Rempt.</div>


<p style="color: grey;"><i>Updated July 28, 2013, 9:46 a.m.</i></p>






<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
 <table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">This patch wraps KoShapeBackground in a QPointer instead of doing manual refcounting. Bug 321714 shows, imo, that the manual refcounting is fragile and sometimes breaks. I don't remember why we weren't supposed to use QPointer (other than that it gets a little ugly with subclassing), but it seems a good fit here.

There are other classes that do manual refcounting, and I think those should be converted, too -- but in another patch.</pre>
  </td>
 </tr>
</table>




<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Bugs: </b>


 <a href="http://bugs.kde.org/show_bug.cgi?id=321714">321714</a>


</div>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>CMakeLists.txt <span style="color: grey">(38c3f62)</span></li>

 <li>cmake/modules/FindVc.cmake <span style="color: grey">(bb9823f)</span></li>

 <li>filters/karbon/wmf/WmfExport.cpp <span style="color: grey">(bf0aa85)</span></li>

 <li>karbon/plugins/tools/CalligraphyTool/KarbonCalligraphicShape.cpp <span style="color: grey">(e9921b8)</span></li>

 <li>karbon/plugins/tools/CalligraphyTool/KarbonCalligraphyTool.cpp <span style="color: grey">(2517164)</span></li>

 <li>karbon/plugins/tools/KarbonGradientEditStrategy.cpp <span style="color: grey">(0bf30d1)</span></li>

 <li>karbon/plugins/tools/KarbonGradientTool.cpp <span style="color: grey">(79d4fde)</span></li>

 <li>karbon/plugins/tools/KarbonPatternEditStrategy.h <span style="color: grey">(b66b78d)</span></li>

 <li>karbon/plugins/tools/KarbonPatternEditStrategy.cpp <span style="color: grey">(1b4e0c0)</span></li>

 <li>karbon/plugins/tools/KarbonPatternTool.cpp <span style="color: grey">(5c0ac36)</span></li>

 <li>karbon/ui/KarbonView.cpp <span style="color: grey">(7e54ede)</span></li>

 <li>karbon/ui/widgets/KarbonPaletteBarWidget.cpp <span style="color: grey">(5898872)</span></li>

 <li>karbon/ui/widgets/KarbonSmallStylePreview.cpp <span style="color: grey">(f6d76cf)</span></li>

 <li>krita/ui/flake/kis_shape_selection_model.cpp <span style="color: grey">(4c59ad0)</span></li>

 <li>krita/ui/opengl/kis_opengl_canvas2.cpp <span style="color: grey">(1674ab4)</span></li>

 <li>krita/ui/tool/kis_tool_shape.cc <span style="color: grey">(aab57dd)</span></li>

 <li>krita/ui/widgets/kis_floating_message.cpp <span style="color: grey">(d53e133)</span></li>

 <li>libs/flake/KoConnectionShape.cpp <span style="color: grey">(09af2dd)</span></li>

 <li>libs/flake/KoOdfWorkaround.h <span style="color: grey">(5faa268)</span></li>

 <li>libs/flake/KoOdfWorkaround.cpp <span style="color: grey">(8a5b593)</span></li>

 <li>libs/flake/KoShape.h <span style="color: grey">(fe6cc3f)</span></li>

 <li>libs/flake/KoShape.cpp <span style="color: grey">(6d14a8c)</span></li>

 <li>libs/flake/KoShapeBackground.h <span style="color: grey">(33253a8)</span></li>

 <li>libs/flake/KoShapeBackground.cpp <span style="color: grey">(9d6b29e)</span></li>

 <li>libs/flake/KoShapeBackground_p.h <span style="color: grey">(92acc36)</span></li>

 <li>libs/flake/KoShape_p.h <span style="color: grey">(aa6633c)</span></li>

 <li>libs/flake/commands/KoShapeBackgroundCommand.h <span style="color: grey">(bee749d)</span></li>

 <li>libs/flake/commands/KoShapeBackgroundCommand.cpp <span style="color: grey">(f4acd2c)</span></li>

 <li>libs/flake/svg/SvgParser.cpp <span style="color: grey">(6898ffc)</span></li>

 <li>libs/flake/svg/SvgStyleWriter.h <span style="color: grey">(1327e27)</span></li>

 <li>libs/flake/svg/SvgStyleWriter.cpp <span style="color: grey">(8be614a)</span></li>

 <li>libs/flake/tests/TestShapeBackgroundCommand.cpp <span style="color: grey">(e0b69ba)</span></li>

 <li>libs/kopageapp/KoPAPageBase.cpp <span style="color: grey">(d56c7fe)</span></li>

 <li>libs/kopageapp/KoPAView.cpp <span style="color: grey">(58b4940)</span></li>

 <li>libs/kopageapp/tools/backgroundTool/KoPABackgroundToolWidget.cpp <span style="color: grey">(c0c5afa)</span></li>

 <li>libs/widgets/KoFillConfigWidget.h <span style="color: grey">(4d71718)</span></li>

 <li>libs/widgets/KoFillConfigWidget.cpp <span style="color: grey">(d086eb7)</span></li>

 <li>libs/widgets/KoResourcePopupAction.h <span style="color: grey">(91031e4)</span></li>

 <li>libs/widgets/KoResourcePopupAction.cpp <span style="color: grey">(2d873ca)</span></li>

 <li>plugins/artistictextshape/ArtisticTextShapeFactory.cpp <span style="color: grey">(37552b8)</span></li>

 <li>plugins/chartshape/ChartShape.cpp <span style="color: grey">(55d5eb8)</span></li>

 <li>plugins/dockers/styledocker/StrokeFillWidget.h <span style="color: grey">(212eaa0)</span></li>

 <li>plugins/dockers/styledocker/StrokeFillWidget.cpp <span style="color: grey">(d67cabf)</span></li>

 <li>plugins/dockers/styledocker/StyleDocker.h <span style="color: grey">(2408188)</span></li>

 <li>plugins/dockers/styledocker/StyleDocker.cpp <span style="color: grey">(052b2ee)</span></li>

 <li>plugins/dockers/styledocker/StylePreview.h <span style="color: grey">(db33b3f)</span></li>

 <li>plugins/dockers/styledocker/StylePreview.cpp <span style="color: grey">(39f8b42)</span></li>

 <li>plugins/pathshapes/ellipse/EllipseShapeFactory.cpp <span style="color: grey">(0a4c68d)</span></li>

 <li>plugins/pathshapes/enhancedpath/EnhancedPathParameter.cpp <span style="color: grey">(29d2ad2)</span></li>

 <li>plugins/pathshapes/enhancedpath/EnhancedPathShapeFactory.cpp <span style="color: grey">(f1e3974)</span></li>

 <li>plugins/pathshapes/rectangle/RectangleShapeFactory.cpp <span style="color: grey">(689abfe)</span></li>

 <li>plugins/pathshapes/star/StarShapeFactory.cpp <span style="color: grey">(dd34c06)</span></li>

 <li>plugins/textshape/TextShape.cpp <span style="color: grey">(b230f0a)</span></li>

 <li>stage/part/KPrEndOfSlideShowPage.cpp <span style="color: grey">(061aa58)</span></li>

 <li>words/part/KWPageStyle.h <span style="color: grey">(b2eeb43)</span></li>

 <li>words/part/KWPageStyle.cpp <span style="color: grey">(f53dab5)</span></li>

 <li>words/part/KWPageStyle_p.h <span style="color: grey">(356af3a)</span></li>

 <li>words/part/frames/KWFrameLayout.cpp <span style="color: grey">(6b2a31e)</span></li>

</ul>

<p><a href="http://git.reviewboard.kde.org/r/111615/diff/" style="margin-left: 3em;">View Diff</a></p>







  </td>
 </tr>
</table>








  </div>
 </body>
</html>