• Kyle Edwards's avatar
    cmUVProcessChain: Add assert() for static analysis tools · dfa24355
    Kyle Edwards authored
    Some static analysis tools throw a false positive for an
    out-of-bounds item that is being dereferenced. This out-of-bounds
    error will never actually happen because of how
    cmUVProcessChain::InternalData::AddCommand() is being called.
    Nevertheless, this change adds an assert() to help static analysis
    tools be absolutely certain that the referenced item is within the
    vector's bounds.
    This change also changes the item access to use an index rather
    than an iterator.
cmUVProcessChain.cxx 9.51 KB