| 4458 | } |
| 4459 | |
| 4460 | bool |
| 4461 | KnobHelper::hasModificationsForSerialization() const |
| 4462 | { |
| 4463 | bool enabledChanged = false; |
| 4464 | bool defValueChanged = false; |
| 4465 | for (int i = 0; i < getDimension(); ++i) { |
| 4466 | if ( isEnabled(i) != isDefaultEnabled(i) ) { |
| 4467 | enabledChanged = true; |
| 4468 | } |
| 4469 | if (hasDefaultValueChanged(i)) { |
| 4470 | defValueChanged = true; |
| 4471 | } |
| 4472 | } |
| 4473 | |
| 4474 | return hasModifications() || |
| 4475 | getIsSecret() != getDefaultIsSecret() || enabledChanged || defValueChanged; |
| 4476 | } |
| 4477 | |
| 4478 | bool |
| 4479 | KnobHelper::hasModifications(int dimension) const |
no test coverage detected