changeset 59:77833938f0f8

Tidy
author Chris Cannam <c.cannam@qmul.ac.uk>
date Mon, 19 Sep 2016 15:52:38 +0100
parents c38e12d4bbdd
children 8a4bcb3dc3a6 18951a1f1001
files json/VampJson.h utilities/vampipe-convert.cpp
diffstat 2 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/json/VampJson.h	Mon Sep 19 14:48:43 2016 +0100
+++ b/json/VampJson.h	Mon Sep 19 15:52:38 2016 +0100
@@ -926,13 +926,11 @@
     }
 
     static json11::Json
-    fromVampResponse_List(std::string errorText,
-                          const Vamp::HostExt::ListResponse &resp) {
+    fromVampResponse_List(const Vamp::HostExt::ListResponse &resp) {
 
         json11::Json::object jo;
         jo["type"] = "list";
-        jo["success"] = (errorText == "");
-        jo["errorText"] = errorText;
+        jo["success"] = true;
 
         json11::Json::array arr;
         for (const auto &a: resp.pluginData) {
--- a/utilities/vampipe-convert.cpp	Mon Sep 19 14:48:43 2016 +0100
+++ b/utilities/vampipe-convert.cpp	Mon Sep 19 15:52:38 2016 +0100
@@ -220,7 +220,7 @@
 	switch (rr.type) {
 
 	case RRType::List:
-	    j = VampJson::fromVampResponse_List("", rr.listResponse);
+	    j = VampJson::fromVampResponse_List(rr.listResponse);
 	    break;
 	case RRType::Load:
 	    j = VampJson::fromVampResponse_Load(rr.loadResponse, mapper);