| 130 | } |
| 131 | |
| 132 | int VariantUtilities::VariantAsJsonValue(IElementManager* element_manager, |
| 133 | VARIANT variant_value, |
| 134 | Json::Value* value) { |
| 135 | std::vector<IDispatch*> visited; |
| 136 | if (HasSelfReferences(variant_value, &visited)) { |
| 137 | return EUNEXPECTEDJSERROR; |
| 138 | } |
| 139 | return ConvertVariantToJsonValue(element_manager, variant_value, value); |
| 140 | } |
| 141 | |
| 142 | bool VariantUtilities::HasSelfReferences(VARIANT current_object, |
| 143 | std::vector<IDispatch*>* visited) { |
nothing calls this directly
no outgoing calls
no test coverage detected