HomePhabricator

Use const in COutPoint class

Description

Use const in COutPoint class

Summary:

Refactoring:

    all cases of using (uint32_t) -1 in COutPoint class are replaced
with const;
    also all remaining instances of (UNSIGNED)-1 transformed to
std::numeric_limits<UNSIGNED>::max() (by @practicalswift).

Backport of core PR14838.

Test Plan:

ninja check

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D5464

Details

Provenance
Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>Authored on Nov 29 2018, 08:35
FabienCommitted on Mar 12 2020, 15:27
FabienPushed on Mar 12 2020, 15:27
Reviewer
Restricted Project
Differential Revision
D5464: Use const in COutPoint class
Parents
rABC116eb55bcaaa: [CMAKE] Use gold as a linker when available
Branches
Unknown
Tags
Unknown

Event Timeline

Fabien committed rABC4b1e7c09100b: Use const in COutPoint class (authored by Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>).Mar 12 2020, 15:27