[Kde-pim] Review Request 111211: shorten the search in some cases
Laurent Montel
montel at kde.org
Mon Jun 24 10:39:47 BST 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/111211/#review34955
-----------------------------------------------------------
mailcommon/searchpattern.cpp
<http://git.reviewboard.kde.org/r/111211/#comment25595>
move check if(msgContents.isEmpty() ) is ::matchInternal
so it avoids to do it in other place in code
- Laurent Montel
On June 24, 2013, 8:56 a.m., Guy Maurel wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/111211/
> -----------------------------------------------------------
>
> (Updated June 24, 2013, 8:56 a.m.)
>
>
> Review request for KDEPIM and Andras Mantia.
>
>
> Description
> -------
>
> as looking for asolution of bug #321186, in file kdepim/mailcomman/searchpattern.cpp
> I found that the variable msgContents is set to "empty" in the "else-case" of "if ( kasciistricmp( field(), ..."
> line 505.
>
> In this case, we can set the variable rc to 0 and don't make the "matchesInternal", line 530.
>
>
> Diffs
> -----
>
> mailcommon/searchpattern.cpp 76a8808
>
> Diff: http://git.reviewboard.kde.org/r/111211/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Guy Maurel
>
>
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list