MCPcopy Create free account
hub / github.com/MITK/MITK / GetActiveLimit

Method GetActiveLimit

Modules/Core/src/Controllers/mitkUndoRedoPreferenceHelper.cpp:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36int 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
44int mitk::UndoRedoPreferenceHelper::GetLastPositiveLimit()
45{

Callers

nothing calls this directly

Calls 2

GetPreferencesFunction · 0.50
GetIntMethod · 0.45

Tested by

no test coverage detected