| 130 | } |
| 131 | |
| 132 | Json::Value ClipBase::add_property_choice_json(std::string name, int value, int selected_value) const { |
| 133 | |
| 134 | // Create choice |
| 135 | Json::Value new_choice = Json::Value(Json::objectValue); |
| 136 | new_choice["name"] = name; |
| 137 | new_choice["value"] = value; |
| 138 | new_choice["selected"] = (value == selected_value); |
| 139 | |
| 140 | // return JsonValue |
| 141 | return new_choice; |
| 142 | } |
nothing calls this directly
no outgoing calls
no test coverage detected