[prev in list] [next in list] [prev in thread] [next in thread] 

List:       amarok-devel
Subject:    Re: Review Request: Fix for USB storage mode media players
From:       "Stefan Derkits" <stefan () derkits ! at>
Date:       2010-12-27 10:49:33
Message-ID: 20101227104933.13510.81054 () vidsolbach ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> On 2010-12-27 09:19:36, Sergey Ivanov wrote:
> > src/MediaDeviceCache.cpp, line 89
> > <http://git.reviewboard.kde.org/r/100194/diff/1/?file=4918#file4918line89>
> > 
> > & has greater priority then &&, parenthesis don't make difference.

Parenthesis make no difference for the compiler (and most probably also no Speed \
Difference), but in cases where the Operator Precendence is not that well known, they \
make the code easier to read --> I would leave them


- Stefan


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/100194/#review621
-----------------------------------------------------------


On 2010-12-08 21:55:12, Lukáš Tinkl wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/100194/
> -----------------------------------------------------------
> 
> (Updated 2010-12-08 21:55:12)
> 
> 
> Review request for Amarok.
> 
> 
> Summary
> -------
> 
> This patch fixes identifying general USB storage mode media players, plus adds some \
> minor fixes and cleanups. The main change is in UmsConnectionAssistant::identify \
> method. 
> 
> Diffs
> -----
> 
> src/MediaDeviceCache.cpp babb8ff 
> src/core-impl/collections/ipodcollection/support/IpodConnectionAssistant.cpp \
> 92339ff  src/core-impl/collections/umscollection/support/UmsConnectionAssistant.cpp \
> 5956a2b  
> Diff: http://git.reviewboard.kde.org/r/100194/diff
> 
> 
> Testing
> -------
> 
> 
> Screenshots
> -----------
> 
> Amarok in USB mode
> http://git.reviewboard.kde.org/r/100194/s/21/
> 
> 
> Thanks,
> 
> Lukáš
> 
> 


[Attachment #5 (text/html)]

<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/100194/">http://git.reviewboard.kde.org/r/100194/</a>
  </td>
    </tr>
   </table>
   <br />








<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: \
10px;">  <p style="margin-top: 0;">On December 27th, 2010, 9:19 a.m., <b>Sergey \
Ivanov</b> wrote:</p>  <blockquote style="margin-left: 1em; border-left: 2px solid \
#d0d0d0; padding-left: 10px;">  



<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/100194/diff/1/?file=4918#file4918line89" \
style="color: black; font-weight: bold; text-decoration: \
underline;">src/MediaDeviceCache.cpp</a>  <span style="font-weight: normal;">

     (Diff revision 1)

    </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; \
">MediaDeviceCache::~MediaDeviceCache()</pre></td>

  </tr>
 </tbody>



 
 




 <tbody>

  <tr>
    <th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" \
align="right"><font size="2">87</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="n">opt</span> <span \
class="o">&amp;&amp;</span> <span class="n">opt</span><span \
class="o">-&gt;</span><span class="n">availableContent</span><span \
class="p">()</span> <span class="o">&amp;</span> <span class="n">Solid</span><span \
class="o">::</span><span class="n">OpticalDisc</span><span class="o">::</span><span \
class="n">Audio</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">89</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="n">opt</span> <span \
class="o">&amp;&amp;</span> <span class="p"><span class="hl">(</span></span><span \
class="n">opt</span><span class="o">-&gt;</span><span \
class="n">availableContent</span><span class="p">()</span> <span \
class="o">&amp;</span> <span class="n">Solid</span><span class="o">::</span><span \
class="n">OpticalDisc</span><span class="o">::</span><span \
class="n">Audio</span><span class="p"><span class="hl">)</span></span> <span \
class="p">)</span></pre></td>  </tr>

 </tbody>

</table>

  <pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: \
-pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">&amp; has greater \
priority then &amp;&amp;, parenthesis don&#39;t make difference.</pre>  </blockquote>





</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; \
white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Parenthesis \
make no difference for the compiler (and most probably also no Speed Difference), but \
in cases where the Operator Precendence is not that well known, they make the code \
easier to read --&gt; I would leave them</pre> <br />




<p>- Stefan</p>


<br />
<p>On December 8th, 2010, 9:55 p.m., Lukáš Tinkl wrote:</p>






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

<div>Review request for Amarok.</div>
<div>By Lukáš Tinkl.</div>


<p style="color: grey;"><i>Updated 2010-12-08 21:55:12</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 fixes identifying general USB storage mode media players, \
plus adds some minor fixes and cleanups. The main change is in \
UmsConnectionAssistant::identify method.</pre>  </td>
 </tr>
</table>





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

 <li>src/MediaDeviceCache.cpp <span style="color: grey">(babb8ff)</span></li>

 <li>src/core-impl/collections/ipodcollection/support/IpodConnectionAssistant.cpp \
<span style="color: grey">(92339ff)</span></li>

 <li>src/core-impl/collections/umscollection/support/UmsConnectionAssistant.cpp <span \
style="color: grey">(5956a2b)</span></li>

</ul>

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



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

<div>

 <a href="http://git.reviewboard.kde.org/r/100194/s/21/"><img \
src="http://git.reviewboard.kde.org/media/uploaded/images/2010/12/08/amarok-usb_400x100.png" \
style="border: 1px black solid;" alt="Amarok in USB mode" /></a>

</div>


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








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



_______________________________________________
Amarok-devel mailing list
Amarok-devel@kde.org
https://mail.kde.org/mailman/listinfo/amarok-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic