| 1123 | } |
| 1124 | |
| 1125 | void DspNetwork::checkId(const Identifier& id, const var& newValue) |
| 1126 | { |
| 1127 | auto newId = newValue.toString(); |
| 1128 | |
| 1129 | auto ok = newId == initialId; |
| 1130 | |
| 1131 | if (ok) |
| 1132 | getExceptionHandler().removeError(getRootNode(), scriptnode::Error::RootIdMismatch); |
| 1133 | else |
| 1134 | { |
| 1135 | Error e; |
| 1136 | e.error = Error::RootIdMismatch; |
| 1137 | getExceptionHandler().addError(getRootNode(), e, "ID mismatch between DSP network file and root container. \n> Rename the root container back to `" + initialId + "` in order to clear this error."); |
| 1138 | } |
| 1139 | } |
| 1140 | |
| 1141 | juce::ValueTree DspNetwork::cloneValueTreeWithNewIds(const ValueTree& treeToClone, Array<IdChange>& changes, bool changeIds) |
| 1142 | { |
nothing calls this directly
no test coverage detected