Browse Source

Merge pull request #8556 from Piccirello/compiler-warnings

Fix missing initializer warning during build
adaptive-webui-19844
Vladimir Golovnev 7 years ago committed by GitHub
parent
commit
cea2948593
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/base/utils/version.h

4
src/base/utils/version.h

@ -50,7 +50,7 @@ namespace Utils @@ -50,7 +50,7 @@ namespace Utils
typedef Version<T, N, Mandatory> ThisType;
constexpr Version()
: m_components {}
: m_components {{}}
{
}
@ -167,7 +167,7 @@ namespace Utils @@ -167,7 +167,7 @@ namespace Utils
throw std::runtime_error ("Incorrect number of version components");
bool ok = false;
ComponentsArray res{};
ComponentsArray res {{}};
for (std::size_t i = 0; i < static_cast<std::size_t>(versionParts.size()); ++i) {
res[i] = static_cast<T>(versionParts[i].toInt(&ok));
if (!ok)

Loading…
Cancel
Save