chore(CPP): use explicit initialization instead of zero initialization

This commit is contained in:
Stefan 2022-08-02 16:01:42 +02:00 committed by Stefan Dunca
parent 7cf0170a8a
commit 489cf935c6
4 changed files with 8 additions and 8 deletions

View File

@ -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;
};

View File

@ -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;
};

View File

@ -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

View File

@ -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};