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


I have played with manual solving of this problem today... :-) There are the more interesting examples:

- else if(pUserMarker)
+ else
{
    delete pUserMarker;
    pUserMarker = 0L;
}

and

- if( GetPageNum() > 0 && pCntntAnchor )
+ if( GetPageNum() > 0 )
{
    delete pCntntAnchor;


Actually, catching these with regexp-search is hard...

17.11.2011 14:16, Michael Meeks пишет:
        If we have a bug whereby something is deleted in-the code without being
re-assigned, and where NULL is a valid value, then we could fix those
with a DELETEZ construct, but - finding those places (that don't already
have a subsequent assignment) is prolly more exciting :-) In theory some
code analysis framework could help find those guys.

I am agree. I think, it is better to find the problematic places by searching in the syntax-tree rather than in the source files.

Cheers,
        Ivan

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.