From d05f0820b2089fe6e0806b6d8f6f08c6a94f4104 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Tue, 20 Sep 2016 00:01:09 -0700 Subject: [PATCH] HTTPSinkImpl: Report property step and default. --- src/HTTPSinkImpl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/HTTPSinkImpl.cpp b/src/HTTPSinkImpl.cpp index c259eb394d..f868897513 100644 --- a/src/HTTPSinkImpl.cpp +++ b/src/HTTPSinkImpl.cpp @@ -201,8 +201,9 @@ void HTTPSinkImpl::SendJSON(llvm::raw_ostream& os, SourceImpl& source, os << ",\n\"type\": \"" << type << '"'; os << ",\n\"min\": \"" << source.GetPropertyMin(prop, &status) << '"'; os << ",\n\"max\": \"" << source.GetPropertyMax(prop, &status) << '"'; - // os << ",\n\"step\": \"" << param->step << '"'; - // os << ",\n\"default\": \"" << param->default_value << '"'; + os << ",\n\"step\": \"" << source.GetPropertyStep(prop, &status) << '"'; + os << ",\n\"default\": \"" << source.GetPropertyDefault(prop, &status) + << '"'; os << ",\n\"value\": \""; switch (type) { case CS_PROP_BOOLEAN: