[Libreoffice] [PUSHED] cppcheck inefficient checking for emptiness

Cedric Bosdonnat cedric.bosdonnat.ooo at free.fr
Fri Apr 22 02:37:17 PDT 2011


Forgot to add the PUSHED flag.

On Tue, 2011-04-19 at 16:23 -0300, Kayo Hamid wrote:
> From cppcheck: Using xxxx.empty() instead of xxxx.size() can be faster. 
>  xxxx.size() can take linear time but xxxx.empty() is guaranteed to take 
>  constant time
> 
>  Sending for review.
> 
>  revol_
> _______________________________________________ LibreOffice mailing list LibreOffice at lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice

-- 
Cédric Bosdonnat
LibreOffice hacker
http://documentfoundation.org
OOo Eclipse Integration developer
http://cedric.bosdonnat.free.fr



More information about the LibreOffice mailing list