Review Request 118423: [klipper] Port KMimeType to QMimeType

Martin Klapetek martin.klapetek at gmail.com
Tue Jun 10 20:18:18 UTC 2014



> On June 10, 2014, 12:26 p.m., David Edmundson wrote:
> > klipper/urlgrabber.cpp, line 152
> > <https://git.reviewboard.kde.org/r/118423/diff/2/?file=276481#file276481line152>
> >
> >     QLatin1String
> >     
> >     (or rather QStringLiteral)
> 
> Martin Klapetek wrote:
>     For string comparisons QLatin1String is better/faster/less memory.
> 
> Aleix Pol Gonzalez wrote:
>     @MartinK actually not, QLatin1String can't know the string size beforehand but QString can, even at compile time.

Sure, but QL1String is just a thin wrapper around "char *" while QString is default UTF16 encoded, so the comparison is slower and more memory consuming as opposed to comparing simple non-utf strings when QL1String is used.


- Martin


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


On June 10, 2014, 2:12 p.m., Martin Gräßlin wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/118423/
> -----------------------------------------------------------
> 
> (Updated June 10, 2014, 2:12 p.m.)
> 
> 
> Review request for Plasma.
> 
> 
> Repository: plasma-workspace
> 
> 
> Description
> -------
> 
> [klipper] Port KMimeType to QMimeType
> 
> 
> Diffs
> -----
> 
>   klipper/urlgrabber.cpp 4eccb7065ae2932cc548c902ab3a8c50e4972444 
> 
> Diff: https://git.reviewboard.kde.org/r/118423/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Martin Gräßlin
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20140610/ddfea10f/attachment.html>


More information about the Plasma-devel mailing list