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

Method StoreLimit

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

Source from the content-addressed store, hash-verified

50}
51
52void mitk::UndoRedoPreferenceHelper::StoreLimit(int limit)
53{
54 auto* prefs = GetPreferences();
55 if (prefs == nullptr)
56 return;
57
58 prefs->PutInt(UNDO_LIMIT_KEY, limit);
59
60 if (limit > 0)
61 prefs->PutInt(LAST_UNDO_LIMIT_KEY, limit);
62}

Callers

nothing calls this directly

Calls 2

PutIntMethod · 0.80
GetPreferencesFunction · 0.50

Tested by

no test coverage detected