Re: [Libreoffice] cppcheck inefficient checking for emptiness

2011-04-22 Thread Cedric Bosdonnat
On Tue, 2011-04-19 at 16:23 -0300, Kayo Hamid wrote: > From cppcheck: Using .empty() instead of .size() can be faster. > .size() can take linear time but .empty() is guaranteed to take > constant time Many thanks for that other patch. I just pushed it too! -- Cédric Bosdonnat

[Libreoffice] cppcheck inefficient checking for emptiness

2011-04-19 Thread Kayo Hamid
From cppcheck: Using .empty() instead of .size() can be faster. .size() can take linear time but .empty() is guaranteed to take constant time Sending for review. revol_diff --git a/basegfx/source/polygon/b2dpolypolygoncutter.cxx b/basegfx/source/polygon/b2dpolypolygoncutter.cxx