[Libreoffice] cppcheck inefficient checking for emptiness

Kayo Hamid kayo.hamid at gekkolinux.com.br
Tue Apr 19 12:23:58 PDT 2011


 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_
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cppcheck.inefficient.emptiness.checking.diff
Type: text/x-patch
Size: 18722 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110419/ff0eb618/attachment-0001.bin>


More information about the LibreOffice mailing list