mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 09:55:55 +00:00
Fix missing initializer warning
This issue occurs when using gcc versions < 5.
This commit is contained in:
parent
c759c4301e
commit
7b3e692f68
@ -50,7 +50,7 @@ namespace Utils
|
|||||||
typedef Version<T, N, Mandatory> ThisType;
|
typedef Version<T, N, Mandatory> ThisType;
|
||||||
|
|
||||||
constexpr Version()
|
constexpr Version()
|
||||||
: m_components {}
|
: m_components {{}}
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -167,7 +167,7 @@ namespace Utils
|
|||||||
throw std::runtime_error ("Incorrect number of version components");
|
throw std::runtime_error ("Incorrect number of version components");
|
||||||
|
|
||||||
bool ok = false;
|
bool ok = false;
|
||||||
ComponentsArray res{};
|
ComponentsArray res {{}};
|
||||||
for (std::size_t i = 0; i < static_cast<std::size_t>(versionParts.size()); ++i) {
|
for (std::size_t i = 0; i < static_cast<std::size_t>(versionParts.size()); ++i) {
|
||||||
res[i] = static_cast<T>(versionParts[i].toInt(&ok));
|
res[i] = static_cast<T>(versionParts[i].toInt(&ok));
|
||||||
if (!ok)
|
if (!ok)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user