From 0a5ea32ce605984094c5552877cb99bc81654f2c Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Tue, 14 Jan 2020 22:37:16 -0800 Subject: Prefer explicit uint160 conversion --- src/script/standard.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/script/standard.h') diff --git a/src/script/standard.h b/src/script/standard.h index 2929425670..c1a9fc90bd 100644 --- a/src/script/standard.h +++ b/src/script/standard.h @@ -78,7 +78,6 @@ struct PKHash : public uint160 PKHash() : uint160() {} explicit PKHash(const uint160& hash) : uint160(hash) {} explicit PKHash(const CPubKey& pubkey); - using uint160::uint160; }; struct WitnessV0KeyHash; @@ -91,7 +90,6 @@ struct ScriptHash : public uint160 explicit ScriptHash(const PKHash& hash) = delete; explicit ScriptHash(const uint160& hash) : uint160(hash) {} explicit ScriptHash(const CScript& script); - using uint160::uint160; }; struct WitnessV0ScriptHash : public uint256 @@ -99,14 +97,12 @@ struct WitnessV0ScriptHash : public uint256 WitnessV0ScriptHash() : uint256() {} explicit WitnessV0ScriptHash(const uint256& hash) : uint256(hash) {} explicit WitnessV0ScriptHash(const CScript& script); - using uint256::uint256; }; struct WitnessV0KeyHash : public uint160 { WitnessV0KeyHash() : uint160() {} explicit WitnessV0KeyHash(const uint160& hash) : uint160(hash) {} - using uint160::uint160; }; //! CTxDestination subtype to encode any future Witness version -- cgit v1.2.3