Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


On 02/15/2013 11:52 PM, julien2412 wrote:
Cppcheck reported this:
cppuhelper/source/servicemanager.cxx
1578    eraseDereference        error   Iterator 'i' used after element has been erased.

Oops. Fixed now as <http://cgit.freedesktop.org/libreoffice/core/commit/?id=80d81b40a1915eec599fc7004698ff113e5bb47f> "cppcheck: Iterator i used after element has been erased." Thanks for reporting.

(+ this but I don't know if we can do something:
1216    unusedScopedObject      error   Instance of 'Parser' object is destroyed
immediately.
1390    unusedScopedObject      error   Instance of 'Parser' object is destroyed
immediately)

Those are false positives---looks like cppcheck doesn't fully appreciate the implications of a language with side effects. ;) (Though it is arguably somewhat odd-looking code for sure.)

Stephan

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.