Browse Source

Util: Change Array constructor

std::vector supports both vector and initializer_list for construction.
master
Riyyi 2 years ago
parent
commit
4487c800df
  1. 3
      src/util/json/array.h

3
src/util/json/array.h

@ -7,7 +7,6 @@
#ifndef JSON_ARRAY_H #ifndef JSON_ARRAY_H
#define JSON_ARRAY_H #define JSON_ARRAY_H
#include <initializer_list>
#include <utility> // move #include <utility> // move
#include <vector> #include <vector>
@ -22,7 +21,7 @@ public:
Array() {} Array() {}
virtual ~Array() {} virtual ~Array() {}
Array(const std::initializer_list<Value>& values) Array(const std::vector<Value>& values)
: m_values(values) : m_values(values)
{} {}

Loading…
Cancel
Save