[k3b] Review Request 120402: Don't preview if called process failed

Johannes Obermayr johannesobermayr at gmx.de
Sun Sep 28 09:32:07 UTC 2014



> On Sept. 28, 2014, 10:53 vorm., Michal Malek wrote:
> > src/rip/videodvd/k3bvideodvdrippingpreview.cpp, line 124
> > <https://git.reviewboard.kde.org/r/120402/diff/1/?file=315608#file315608line124>
> >
> >     I suggest using more readable form:
> >     if( exitStatus != QProcess::NormalExit )

Isn't the CPU faster on "if( !exitStatus )"? It doesn't need to load value of QProcess::NormalExit (= 0).
IMHO comment "// exitStatus != QProcess::NormalExit" would be enough if really necessary.
Yes, today CPUs are fast enough to do the slower thing but better optimize if we can ...


- Johannes


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/120402/#review67546
-----------------------------------------------------------


On Sept. 28, 2014, 10:16 vorm., Johannes Obermayr wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/120402/
> -----------------------------------------------------------
> 
> (Updated Sept. 28, 2014, 10:16 vorm.)
> 
> 
> Review request for K3b.
> 
> 
> Bugs: 268680
>     http://bugs.kde.org/show_bug.cgi?id=268680
> 
> 
> Repository: k3b
> 
> 
> Description
> -------
> 
> None
> 
> 
> Diffs
> -----
> 
>   src/rip/videodvd/k3bvideodvdrippingpreview.cpp 0c36c97 
> 
> Diff: https://git.reviewboard.kde.org/r/120402/diff/
> 
> 
> Testing
> -------
> 
> None
> 
> 
> Thanks,
> 
> Johannes Obermayr
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/k3b/attachments/20140928/ecf5c0ce/attachment.html>


More information about the k3b mailing list