MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / get

Method get

launcher/settings/Setting.cpp:24–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24QVariant Setting::get() const
25{
26 SettingsObject *sbase = m_storage;
27 if (!sbase)
28 {
29 return defValue();
30 }
31 else
32 {
33 QVariant test = sbase->retrieveValue(*this);
34 if (!test.isValid())
35 return defValue();
36 return test;
37 }
38}
39
40QVariant Setting::defValue() const
41{

Callers

nothing calls this directly

Calls 2

retrieveValueMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected