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
|
* \note update NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE when changing structure's content
|
||||||
*/
|
*/
|
||||||
struct JsonError {
|
struct JsonError {
|
||||||
int code{};
|
int code{0};
|
||||||
std::string message;
|
std::string message;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -24,10 +24,10 @@ struct NetworkConfiguration
|
||||||
std::optional<QUrl> iconUrl;
|
std::optional<QUrl> iconUrl;
|
||||||
std::optional<QString> nativeCurrencyName;
|
std::optional<QString> nativeCurrencyName;
|
||||||
std::optional<QString> nativeCurrencySymbol;
|
std::optional<QString> nativeCurrencySymbol;
|
||||||
unsigned int nativeCurrencyDecimals{};
|
unsigned int nativeCurrencyDecimals{0};
|
||||||
bool isTest{};
|
bool isTest{false};
|
||||||
unsigned int layer{};
|
unsigned int layer{0};
|
||||||
bool enabled{};
|
bool enabled{false};
|
||||||
QColor chainColor;
|
QColor chainColor;
|
||||||
QString shortName;
|
QString shortName;
|
||||||
};
|
};
|
||||||
|
|
|
@ -47,8 +47,8 @@ private:
|
||||||
|
|
||||||
using AssetModel = Helpers::QObjectVectorModel<WalletAsset>;
|
using AssetModel = Helpers::QObjectVectorModel<WalletAsset>;
|
||||||
std::shared_ptr<AssetModel> m_assets;
|
std::shared_ptr<AssetModel> m_assets;
|
||||||
float m_totalValue{};
|
float m_totalValue{0};
|
||||||
bool m_assetsReady{};
|
bool m_assetsReady{false};
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Status::Wallet
|
} // namespace Status::Wallet
|
||||||
|
|
|
@ -84,7 +84,7 @@ private:
|
||||||
int m_derivedAddressIndex{0};
|
int m_derivedAddressIndex{0};
|
||||||
DerivedWalletAddressPtr m_selectedDerivedAddress;
|
DerivedWalletAddressPtr m_selectedDerivedAddress;
|
||||||
GoAccounts::DerivationPath m_derivationPath;
|
GoAccounts::DerivationPath m_derivationPath;
|
||||||
bool m_customDerivationPath{};
|
bool m_customDerivationPath{false};
|
||||||
|
|
||||||
static constexpr int m_derivedAddressesPageSize{15};
|
static constexpr int m_derivedAddressesPageSize{15};
|
||||||
static constexpr int m_maxDerivedAddresses{5 * m_derivedAddressesPageSize};
|
static constexpr int m_maxDerivedAddresses{5 * m_derivedAddressesPageSize};
|
||||||
|
|
Loading…
Reference in New Issue