Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SpectrumIM/spectrum2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Takmazov <vitalyster@gmail.com>2018-09-18 20:06:31 +0300
committerVitaly Takmazov <vitalyster@gmail.com>2018-09-18 20:06:31 +0300
commit8780e3a1d0afea8274fd74a9537817b5cebf34e8 (patch)
tree62fcbe622cd1cb7b385a14c6f204787f38cb3eb0 /spectrum_manager
parent253505c23ffbae2b82f80d51b4c09579665ea7d3 (diff)
fix compatibility with gcc 4.9
Diffstat (limited to 'spectrum_manager')
-rw-r--r--spectrum_manager/src/APIServer.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/spectrum_manager/src/APIServer.cpp b/spectrum_manager/src/APIServer.cpp
index 5e31085f..d5aa7d8a 100644
--- a/spectrum_manager/src/APIServer.cpp
+++ b/spectrum_manager/src/APIServer.cpp
@@ -87,7 +87,7 @@ void APIServer::serve_instances(Server *server, Server::session *session, struct
Json::Value json;
json["error"] = 0;
- Json::Value instances(Json::ValueType::arrayValue);
+ Json::Value instances(Json::arrayValue);
BOOST_FOREACH(std::string &id, list) {
Json::Value instance;
instance["id"] = id;
@@ -290,7 +290,7 @@ void APIServer::serve_instances_commands(Server *server, Server::session *sessio
json["error"] = 0;
std::vector<std::vector<std::string> > tmp;
- Json::Value cmds(Json::ValueType::arrayValue);
+ Json::Value cmds(Json::arrayValue);
BOOST_FOREACH(const std::string &command, commands) {
escaped_list_separator<char> els('\\', ' ', '\"');
tokenizer<escaped_list_separator<char> > tok(command, els);
@@ -354,7 +354,7 @@ void APIServer::serve_instances_variables(Server *server, Server::session *sessi
json["error"] = 0;
std::vector<std::vector<std::string> > tmp;
- Json::Value cmds(Json::ValueType::arrayValue);
+ Json::Value cmds(Json::arrayValue);
BOOST_FOREACH(const std::string &command, commands) {
escaped_list_separator<char> els('\\', ' ', '\"');
tokenizer<escaped_list_separator<char> > tok(command, els);
@@ -451,7 +451,7 @@ void APIServer::serve_instances_command_args(Server *server, Server::session *se
json["error"] = 0;
std::vector<std::vector<std::string> > tmp;
- Json::Value argList(Json::ValueType::arrayValue);
+ Json::Value argList(Json::arrayValue);
if (userContext && session->admin) {
Json::Value arg;
@@ -571,7 +571,7 @@ void APIServer::serve_instances_execute(Server *server, Server::session *session
std::vector<std::string> tmp;
std::vector<std::string> tmp2;
- Json::Value table(Json::ValueType::arrayValue);
+ Json::Value table(Json::arrayValue);
BOOST_FOREACH(const std::string &line, fields) {
escaped_list_separator<char> els('\\', ' ', '\"');
@@ -628,7 +628,7 @@ void APIServer::serve_users(Server *server, Server::session *session, struct mg_
std::vector<std::string> list;
m_storage->getUsers(list);
- Json::Value users(Json::ValueType::arrayValue);
+ Json::Value users(Json::arrayValue);
BOOST_FOREACH(std::string &id, list) {
Json::Value user;
user["username"] = id;