MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / change

Function change

source/frontend/StarVoice.cpp:179–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177
178template <typename T>
179inline bool change(T& value, T newValue, bool& out) {
180 bool changed = value != newValue;
181 out |= changed;
182 value = std::move(newValue);
183 return changed;
184}
185
186void Voice::loadJson(Json const& config, bool skipSave) {
187 // Not all keys are required

Callers 1

loadJsonMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected