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
jasonbcoxPushed on Mar 12 2020, 16:10
Reviewer
Restricted Project
Differential Revision
D5464: Use const in COutPoint class
Parents
rSTAGING116eb55bcaaa: [CMAKE] Use gold as a linker when available
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/17034, tag: phabricator/base/16931, tag: phabricator/base/16897