[Libreoffice] [PATCH] [PUSHED] cppcheck at writer, performance.
kyoshida at novell.com
Mon Jan 3 20:47:38 PST 2011
On Thu, 2010-12-30 at 13:23 -0200, Kayo Hamid wrote:
> So, it's a small patch that I send for review because I do not know if
> it's ok to do what the cppcheck says to do. In this case, he says that
> for non-primitive types we can do ++test instead test++. My fear is if
> in the code really need to be test++, understand?
In those use cases it makes no difference whether it's a post- or
pre-increment. It matters only when its return value is stored & used.
I pushed your patch to master.
Kohei Yoshida, LibreOffice hacker, Calc
<kyoshida at novell.com>
More information about the LibreOffice