| 34 | } |
| 35 | |
| 36 | int mitk::UndoRedoPreferenceHelper::GetActiveLimit() |
| 37 | { |
| 38 | auto* prefs = GetPreferences(); |
| 39 | return prefs != nullptr |
| 40 | ? prefs->GetInt(UNDO_LIMIT_KEY, static_cast<int>(mitk::DEFAULT_UNDO_REDO_LIMIT)) |
| 41 | : static_cast<int>(mitk::DEFAULT_UNDO_REDO_LIMIT); |
| 42 | } |
| 43 | |
| 44 | int mitk::UndoRedoPreferenceHelper::GetLastPositiveLimit() |
| 45 | { |
nothing calls this directly
no test coverage detected