[Libreoffice] [PUSHED] Fix cppcheck errors and warnings

David Tardon dtardon at redhat.com
Mon Feb 7 01:37:04 PST 2011


On Sun, Feb 06, 2011 at 09:42:46PM +0100, Xisco Faulí wrote:
> -    } section[SECTIONS];
> +    } section[SECTIONS] = NULL;

This is false alarm. The struct has default constructor, so the elements
of the array are initialized properly.

> +            delete [] level;

This is wrong, because OutlineNumbering deletes the passed level in its
destructor.

D.


More information about the LibreOffice mailing list