| 4220 | } |
| 4221 | |
| 4222 | bool |
| 4223 | KnobHelper::hasModificationsForSerialization() const |
| 4224 | { |
| 4225 | bool enabledChanged = false; |
| 4226 | bool defValueChanged = false; |
| 4227 | for (int i = 0; i < getDimension(); ++i) { |
| 4228 | if ( isEnabled(i) != isDefaultEnabled(i) ) { |
| 4229 | enabledChanged = true; |
| 4230 | } |
| 4231 | if (hasDefaultValueChanged(i)) { |
| 4232 | defValueChanged = true; |
| 4233 | } |
| 4234 | } |
| 4235 | |
| 4236 | return hasModifications() || |
| 4237 | getIsSecret() != getDefaultIsSecret() || enabledChanged || defValueChanged; |
| 4238 | } |
| 4239 | |
| 4240 | bool |
| 4241 | KnobHelper::hasModifications(int dimension) const |
no test coverage detected