chore(CPP): use explicit initialization instead of zero initialization
This commit is contained in:
parent
7cf0170a8a
commit
489cf935c6
|
@ -32,7 +32,7 @@ NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(ApiErrorResponse, error)
|
|||
* \note update NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE when changing structure's content
|
||||
*/
|
||||
struct JsonError {
|
||||
int code{};
|
||||
int code{0};
|
||||
std::string message;
|
||||
};
|
||||
|
||||
|
|
|
@ -24,10 +24,10 @@ struct NetworkConfiguration
|
|||
std::optional<QUrl> iconUrl;
|
||||
std::optional<QString> nativeCurrencyName;
|
||||
std::optional<QString> nativeCurrencySymbol;
|
||||
unsigned int nativeCurrencyDecimals{};
|
||||
bool isTest{};
|
||||
unsigned int layer{};
|
||||
bool enabled{};
|
||||
unsigned int nativeCurrencyDecimals{0};
|
||||
bool isTest{false};
|
||||
unsigned int layer{0};
|
||||
bool enabled{false};
|
||||
QColor chainColor;
|
||||
QString shortName;
|
||||
};
|
||||
|
|
|
@ -47,8 +47,8 @@ private:
|
|||
|
||||
using AssetModel = Helpers::QObjectVectorModel<WalletAsset>;
|
||||
std::shared_ptr<AssetModel> m_assets;
|
||||
float m_totalValue{};
|
||||
bool m_assetsReady{};
|
||||
float m_totalValue{0};
|
||||
bool m_assetsReady{false};
|
||||
};
|
||||
|
||||
} // namespace Status::Wallet
|
||||
|
|
|
@ -84,7 +84,7 @@ private:
|
|||
int m_derivedAddressIndex{0};
|
||||
DerivedWalletAddressPtr m_selectedDerivedAddress;
|
||||
GoAccounts::DerivationPath m_derivationPath;
|
||||
bool m_customDerivationPath{};
|
||||
bool m_customDerivationPath{false};
|
||||
|
||||
static constexpr int m_derivedAddressesPageSize{15};
|
||||
static constexpr int m_maxDerivedAddresses{5 * m_derivedAddressesPageSize};
|
||||
|
|
Loading…
Reference in New Issue