diff --git a/src/crypto/crypto-sugar.h b/src/crypto/crypto-sugar.h index 7fb39548..4aa576fd 100644 --- a/src/crypto/crypto-sugar.h +++ b/src/crypto/crypto-sugar.h @@ -141,8 +141,7 @@ namespace crypto crypto::secret_key m_sk; }; - scalar_t() - {} + scalar_t() = default; // won't check scalar range validity (< L) scalar_t(uint64_t a0, uint64_t a1, uint64_t a2, uint64_t a3) diff --git a/src/currency_core/offers_service_basics.h b/src/currency_core/offers_service_basics.h index 809bf88b..1dffe367 100644 --- a/src/currency_core/offers_service_basics.h +++ b/src/currency_core/offers_service_basics.h @@ -19,9 +19,9 @@ namespace bc_services { //fields filled in UI - uint8_t offer_type; // OFFER_TYPE_PRIMARY_TO_TARGET(SELL ORDER) - 0, OFFER_TYPE_TARGET_TO_PRIMARY(BUY ORDER) - 1 etc. - uint64_t amount_primary; // amount of the currency - uint64_t amount_target; // amount of other currency or goods + uint8_t offer_type = 0; // OFFER_TYPE_PRIMARY_TO_TARGET(SELL ORDER) - 0, OFFER_TYPE_TARGET_TO_PRIMARY(BUY ORDER) - 1 etc. + uint64_t amount_primary = 0; // amount of the currency + uint64_t amount_target = 0; // amount of other currency or goods std::string bonus; // std::string target; // [] currency / goods std::string primary; // currency for goods @@ -33,7 +33,7 @@ namespace bc_services std::string deal_option; // []full amount, by parts std::string category; // [] std::string preview_url; // [] - uint8_t expiration_time; // n-days + uint8_t expiration_time = 0; // n-days //----------------- BEGIN_KV_SERIALIZE_MAP()